Class SMMenuItem

SMMenuItem: elements of a SMMenu

Summary

FieldTypeSummary
IsSelectedbooleanIs item selected?
NextSMMenuItemNext menu item
PreviousSMMenuItemPrevious menu item
Return typeFunction and summary
SMMenuItemdisable(boolean b)
Disable (or not) the menu item.
SMMenuItemleftIcon(string li)
Add an image or text on the left side of the menu item.
SMMenuItemshortcut(string s)
Add a keyboard shortcut to the menu item.

Fields

boolean SMMenuItem:IsSelected

Is item selected?

SMMenuItem SMMenuItem:Previous

Previous menu item

SMMenuItem SMMenuItem:Next

Next menu item

Methods

SMMenuItem:leftIcon(string li)

Add an image or text on the left side of the menu item.

ParameterTypeDefaultDescription
listring Left icon "image:<filename>", or "text:Abc" or "color:<[#]RRGGBB>".
Return
SMMenuItem: self for function concatenation

SMMenuItem:disable(boolean b)

Disable (or not) the menu item.

ParameterTypeDefaultDescription
bboolean b
Return
SMMenuItem: self for function concatenation

SMMenuItem:shortcut(string s)

Add a keyboard shortcut to the menu item.

ParameterTypeDefaultDescription
sstring s
Return
SMMenuItem: self for function concatenation