MenuSubmenuWithIcon class
📖 Description​
The MenuSubmenuWithIcon
class defines a menu item (with an icon) for the Menu
class that can hold another menu (sub-menu). It is derived from the MenuSubmenu
class.
🆕 constructor
​
Creates a new MenuSubmenuWithIcon
instance.
Signature​
constructor(
icon: number,
label: string,
options: MenuOption[],
disabled?: boolean
): MenuSubmenuWithIcon
Parameters​
Name | Type | Optional | Description |
---|---|---|---|
icon | number | No | Specifies the icon. |
label | string | No | Specifies the item label. |
options | MenuOption[] | No | Specifies the submenu options. |
disabled | boolean | Yes | Specifies if the item is disabled (default is false ). |
Return value​
Returns a reference to the new MenuSubmenuWithIcon
instance.