Methods
flushCache()
Flush the internal menu cache to force loading a new structure on the next page load.
getChildren(nodeopt) → {Array.<LuCI.ui.menu.MenuNode>}
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
node | LuCI. | <optional> | The menu node to retrieve the children for. Defaults to the menu's internal root node if omitted. |
Returns:
Returns an array of child menu nodes.
- Type:
- Array.<LuCI.ui.menu.MenuNode>
load() → {Promise.<LuCI.ui.menu.MenuNode>}
Load and cache current menu tree.
Returns:
Returns a promise resolving to the root element of the menu tree.
- Type:
- Promise.<LuCI.ui.menu.MenuNode>
Type Definitions
MenuNode
Type:
Properties- Object
| Name | Type | Attributes | Description |
|---|---|---|---|
name | string | The internal name of the node, as used in the URL. | |
order | number | The sort index of the menu node | |
title | string | <optional> | The title of the menu node, |
satisfied | boolean | Boolean indicating whether the menu entries dependencies are satisfied. | |
readonly | boolean | <optional> | Boolean indicating whether the menu entries underlying ACLs are readonly. |
children | Array.<LuCI.ui.menu.MenuNode> | <optional> | Array of child menu nodes. |