MenuLabel class
📖 Description​
The MenuLabel
class defines a menu label item for the Menu
class. It is used to show a static label in the menu. It is derived from the MenuOption
class.
🆕 constructor
​
Creates a new MenuLabel
instance.
Signature​
constructor(label: string, disabled?: boolean): MenuLabel
Parameters​
Name | Type | Optional | Description |
---|---|---|---|
label | string | No | Specifies the option label. |
disabled | boolean | Yes | Specifies if the label is disabled (default is false ). |
Return value​
Returns a reference to the new MenuLabel
instance.