Attributes | Name and Description |
---|---|
|
caplin.menu.model.Item(String label, Function callback, type)
|
Attributes | Name and Description |
---|---|
|
void
disable()
Disables the item. |
|
void
enable()
Enables the item. |
|
void
executeAction()
Executes the action associated with this item if a callback for it has been provided and the item is enabled. |
|
String
getType()
Returns the type in string format. |
|
Boolean
isEnabled()
Returns true if the item is enabled, false if it is not. |
►
caplin.menu.model.Item(String label, Function callback, type)
String | label | The item label. |
Function | callback | The function to be called back when the action on this item is triggered. |
type |
►
void
disable()
Disables the item.
►
void
enable()
Enables the item.
►
void
executeAction()
Executes the action associated with this item if a callback for it has been provided and the item is enabled.
►
String
getType()
Returns the type in string format.
►
Boolean
isEnabled()
Returns true if the item is enabled, false if it is not.