Skip to main content

MenuSeparator class

📖 Description​

The MenuSeparator class defines a menu separator item for the Menu class. It is used to add a static separator to a menu to divide menu options. It is derived from the MenuOption class.


🆕 constructor​

Creates a new MenuSeparator instance.

Signature​

constructor(): MenuSeparator

Return value​

Returns a reference to the new MenuSeparator instance.