Methods
-
Flush the internal menu cache to force loading a new structure on the next page load.
-
getChildren(node){Array.<LuCI.ui.menu.MenuNode>}
-
Name Type Description nodeLuCI.ui.menu.MenuNode optional The menu node to retrieve the children for. Defaults to the menu's internal root node if omitted.
Returns:
Type Description Array.<LuCI.ui.menu.MenuNode> Returns an array of child menu nodes. -
load(){Promise.<LuCI.ui.menu.MenuNode>}
-
Load and cache current menu tree.
Returns:
Type Description Promise.<LuCI.ui.menu.MenuNode> Returns a promise resolving to the root element of the menu tree.
Type Definitions
-
LuCI.ui.menu.MenuNodeObject
-
Properties:
Name Type Argument Description namestring The internal name of the node, as used in the URL
ordernumber The sort index of the menu node
titlestring <optional>
The title of the menu node,
nullif the node should be hiddenbooleansatisfied Boolean indicating whether the menu entries dependencies are satisfied
booleanreadonly <optional>
Boolean indicating whether the menu entries underlying ACLs are readonly
childrenArray.<LuCI.ui.menu.MenuNode> <optional>
Array of child menu nodes.