Lowdefy
v3.17.2/Operators/_menu/

_menu

Environment: Client Only
(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: The menuId of the menu to return.
  • index: number: The index of the menu to return.
  • all: boolean: If the _media operator is called with boolean argument true, the entire menus 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.