caplin.menu.Generator
represents the view control for any
caplin.menu.Model inserted on a menu.
caplin.menu.Generator
will be contained inside the
caplin.menu.Control to render every model type.
Attributes | Name and Description |
---|---|
|
caplin.menu.Generator()
|
Attributes | Name and Description |
---|---|
|
void
addParentControl( parentControl)
Sets the parent control. |
|
void
create( model, container)
Appends the html element representation of the given model to the provided container. |
|
void
destroy()
Release any memory that the control holds. |
|
caplin.menu.Control
getParentControl()
Returns the parent control. |
►
caplin.menu.Generator()
►
void
addParentControl( parentControl)
Sets the parent control. This will be done automatically by the caplin.menu.Control.
parentControl |
►
void
create( model, container)
Appends the html element representation of the given model to the provided container.
model | {caplin.menu.Model} The model. | |
container | {HTMLElement} The container element. |
►
void
destroy()
Release any memory that the control holds.
►
caplin.menu.Control
getParentControl()
Returns the parent control. Use this method in order to be able to call the append method from other generator types.