(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
: ThemenuId
of themenu
to return.index: number
: The index of themenu
to return.all: boolean
: If the_media
operator is called with boolean argumenttrue
, the entiremenus
object is returned.
Examples
Get the menus
object:
_menu: true
_menu:
all: true
Returns: An array of menu
objects.
Get a menu
by id
:
_menu: default
_menu:
value: default
Returns: A menu
object.
Get a menu
by index
:
_menu: 0
_menu:
value: 0
Returns: A menu
object.