Constructor
(abstract) new module:ct-menu /Generator()
Methods
add Parent Control()
Sets the parent control. This will be done automatically by the module:ct-menu/Control
.
create(model, container)
Appends the html element representation of the given model to the provided container.
Parameters:
Name | Type | Description |
---|---|---|
model |
module:ct-menu |
The model. |
container |
HTMLElement | The container element. |
destroy()
Release any memory that the control holds.
get Parent Control() → {module:ct-menu /Control}
Returns the parent control. Use this method in order to be able to call the append method from other generator types.
Returns:
The parent control.