(menuId: string): object
(menuIndex: number): object
(all: boolean): object[]
(arguments: {
value?: string,
index?: number
all?: boolean,
}): object | object[]The _menu operator can be used to access menu objects defined in the menus section of the Lowdefy configuration.
Arguments
string
The menuId of the menu to return.
number
The index of the menu to return.
boolean
If the _media operator is called with boolean argument true, the entire menus object is returned.
object
value: string: ThemenuIdof themenuto return.index: number: The index of themenuto return.all: boolean: If the_mediaoperator is called with boolean argumenttrue, the entiremenusobject is returned.
Examples
Get the menus object:
_menu: true_menu:
all: trueReturns: An array of menu objects.
Get a menu by id:
_menu: default_menu:
value: defaultReturns: A menu object.
Get a menu by index:
_menu: 0_menu:
value: 0Returns: A menu object.
