- menu(currentIndex) ⇒
DomItem
Generates a menu with the provided index as the currently selected item.
- text(nodeValue) ⇒
DomItem
Create the template of a DomItem
- node(nodeName, nodeValue, [children], [attributes]) ⇒
DomItem
Create the template of a DomItem
- navigation([children], [className], [attributes]) ⇒
DomItem
Create a nav DomItem
- element(nodeName, [children], [className], [attributes]) ⇒
DomItem
Create the template of a DomItem
Generates a menu with the provided index as the currently selected item.
Kind: global function
Param | Type | Default |
---|---|---|
currentIndex | number |
1 |
Create the template of a DomItem
Kind: global function
Param | Type |
---|---|
nodeValue | string |
Create the template of a DomItem
Kind: global function
Param | Type | Default |
---|---|---|
nodeName | string |
|
nodeValue | string |
|
[children] | array |
[] |
[attributes] | object |
{} |
Create a nav DomItem
Kind: global function
Param | Type | Default |
---|---|---|
[children] | array |
[] |
[className] | string |
"''" |
[attributes] | object |
{} |
Create the template of a DomItem
Kind: global function
Param | Type | Default |
---|---|---|
nodeName | string |
|
[children] | array |
[] |
[className] | string |
"''" |
[attributes] | object |
{} |