caplin.menu.model.Item
represents a default item that can be inserted into a menu.
The table below explains each possible option.
name | default | type | description |
---|---|---|---|
label | String | The item label. | |
classifier | String | Allows you to set a classifier to your item to differentiate it from other items. | |
type | item | String | The item type. |
Attributes | Name and Description |
---|---|
|
caplin.menu.model.Item(Map options)
|
Attributes | Name and Description |
---|---|
<static>
|
caplin.menu.model.Item.ACTION_EVENT
The name of the event that is emitted when an action is activated. |
Attributes | Name and Description |
---|---|
|
void
disable()
Disables the item. |
|
void
enable()
Enables the item. |
|
String
getClassifier()
Returns the item's classifier. |
|
String
getLabel()
Returns the item's label. |
►
caplin.menu.model.Item(Map options)
Map | options | A map of options. |
►
<static>
caplin.menu.model.Item.ACTION_EVENT
The name of the event that is emitted when an action is activated.
►
void
disable()
Disables the item.
►
void
enable()
Enables the item.
►
String
getClassifier()
Returns the item's classifier.
►
String
getLabel()
Returns the item's label.