Skip to main content

Module: ui/menu

Functions

addMenuItem

addMenuItem(messageOptions): Promise<void>

Parameters

NameType
messageOptionsMessageDataType<"menuItemAdd">

Returns

Promise<void>

Defined in

packages/admin-sdk/src/channel.ts:446

Type Aliases

Ƭ menuItemAdd: Object

Type declaration

NameTypeDescription
responseTypevoid-
labelstringLabel of the menu item.
locationIdstringThe locationId you want to display.
displaySearchBar?booleanToggles the sw-page search bar on/off. Defaults to true.
parent?stringDetermines under which main menu entry your item is displayed. Defaults to sw-extension.
position?numberDetermines the position of your menu item. Defaults to 110.

Defined in

packages/admin-sdk/src/ui/menu/index.ts:5