Skip to main content

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​

NameTypeOptionalDescription
labelstringNoSpecifies the option label.
disabledbooleanYesSpecifies if the label is disabled (default is false).

Return value​

Returns a reference to the new MenuLabel instance.