{
alias:'caplin.anAlias',
options:
{
label: 'a Label',
otherOption: 'something'
},
items:
[
{
alias:'caplinx.myAlias',
},
{
options:
{
label: 'another label'
}
}
]
}
The table below explains each possible option to represent a caplin.menu.Model
.
name | default | type | description |
---|---|---|---|
alias | String |
The alias for the model to create. This parameter is optional, either a caplin.menu.model.Item or
a caplin.menu.model.Menu will be created in case an alias is not provided.
|
|
options | Map | The options which will be passed to the model that is created. This parameter is optional. | |
items | array |
An array of caplin.menu.Model configuration map representations. This parameter is optional.
|
Attributes | Name and Description |
---|---|
|
caplin.menu.model.MenuFactory()
|
Attributes | Name and Description |
---|---|
<static>
|
caplin.menu.Model
create(Map config)
Returns an instance of a caplin.menu.Model represented configuration map passed as a parameter. |
►
caplin.menu.model.MenuFactory()
►
<static>
caplin.menu.Model
create(Map config)
Returns an instance of a caplin.menu.Model represented configuration map passed as a parameter.
Map | config | Map to recreate the model from. |