UNPKG

@nova-ui/bits

Version:

SolarWinds Nova Framework

32 lines (31 loc) 903 B
import { ElementRef, QueryList } from "@angular/core"; import { MenuGroupComponent } from "./menu-item/menu-group/menu-group.component"; import { MenuItemBaseComponent } from "./menu-item/menu-item/menu-item-base"; export declare enum MenuActionType { destructive = "destructive", default = "default" } export interface IMenuItem { checked?: boolean; disabled?: boolean; title: any; value?: any; itemType?: string; url?: string; action?: Function; itemClass?: MenuActionType; isSelected?: boolean; icon?: string; displayFormat?: string; } export interface IMenuGroup { itemsSource: IMenuItem[]; header?: string; } export interface IPopupActiveOptions { scrollContainer: ElementRef; menuItemHeight: number; activeOptionIndex: number; menuItems: QueryList<MenuItemBaseComponent>; menuGroups: QueryList<MenuGroupComponent>; }