new module:ct-menu /model /Item(options)
The class Item
represents a default item that can be inserted into a menu.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
A map of options. Properties
|
- Implements:
Members
(static) ACTION _EVENT :String
The name of the event that is emitted when an action is activated.
Type:
- String
- Deprecated:
- Please use module:ct-menu/Model.ACTION_EVENT instead.
Methods
disable()
Disables the item.
enable()
Enables the item.
get Classifier() → {String}
Returns the item's classifier.
Returns:
- Type
- String
get Label() → {String}
Returns the item's label.
Returns:
- Type
- String