MenuSubmenuWithImage class
📖 Description​
The MenuSubmenuWithImage
class defines a menu item (with an image) for the Menu
class that can hold another menu (sub-menu). It is derived from the MenuSubmenu
class.
🆕 constructor
​
Creates a new MenuSubmenuWithImage
instance.
Signature​
constructor(
image: string,
label: string,
options: MenuOption[],
disabled?: boolean
): MenuSubmenuWithImage
Parameters​
Name | Type | Optional | Description |
---|---|---|---|
image | string | No | Specifies the image. |
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 MenuSubmenuWithImage
instance.