Interface ContextMenuItem

interface ContextMenuItem {
    click?: ((event?: any) => void);
    disabled?: boolean;
    heading?: boolean;
    icon?: string;
    iconUrl?: string;
    indicatorIcon?: string;
    items?: any[];
    label?: string;
    separator?: boolean;
    value?: boolean;
}

Properties

click?: ((event?: any) => void)

When present, this method will be called when this menu item is selected.

disabled?: boolean

Indicates whether the menu item can be clicked.

heading?: boolean

Indicates that the menu item is not selectable but is displayed as a heading. If heading is true then the value field and indicator are ignored.

icon?: string

The default field for the font icon to be displayed next to the menu item.

iconUrl?: string

URL to retrieve custom icon to display

indicatorIcon?: string

The default CSS class name of a SAS font icon that will be placed next to the menu expand arrow in the menu item.

items?: any[]

If there is a cascade menu then its data is in the items.

label?: string

The default label string for the menu item.

separator?: boolean

If true, this item will be shown as a separator, and all other properties will be ignored.

value?: boolean

The default name for the field used to place a checkmark on the menu item. The meaning of value is: true - will show a checkbox on the menu item false - will show no checkmark but an empty space will be reserved for a checkmark undefined - checkmarks are not used for this menu item.

Notes: The menu component will not automatically change the value. It must be done by the selectItem handler. When value is false, it is recommended that the menu text indicate that the menu item can have a value.