Constructor
new module:ct-menu /presenter /node /Menu(model)
Constructs a new instance of PresentationNode
.
Parameters:
Name | Type | Description |
---|---|---|
model |
module:ct-menu |
The model used for the by the control to render the menu. |
Methods
add Generator(generator, type)
Allows the user to add custom generators into the Control
. See
module:ct-menu/Control#addGenerator
for more details.
Parameters:
Name | Type | Description |
---|---|---|
generator |
module:ct-menu |
Generator class which will render elements of the given type. |
type |
String | String representation of the item type the control registered will be in charge of rendering. |
get Generators()
Returns a map with the types as the keys and the generator instances as the values.
get Menu Model()
Returns the model.
hide()
Informs the control to hide the menu.
is Visible()
Returns the value of the visible property.
set Menu Model()
Sets the model.
show()
Informs the control to show the menu.