Module: ui/menu
Functions
addMenuItem
▸ addMenuItem(messageOptions
): Promise
<void
>
Parameters
Name | Type |
---|---|
messageOptions | MessageDataType <"menuItemAdd" > |
Returns
Promise
<void
>
Defined in
packages/admin-sdk/src/channel.ts:446
Type Aliases
menuItemAdd
Ƭ menuItemAdd: Object
Type declaration
Name | Type | Description |
---|---|---|
responseType | void | - |
label | string | Label of the menu item. |
locationId | string | The locationId you want to display. |
displaySearchBar? | boolean | Toggles the sw-page search bar on/off. Defaults to true. |
parent? | string | Determines under which main menu entry your item is displayed. Defaults to sw-extension . |
position? | number | Determines the position of your menu item. Defaults to 110. |
Defined in
packages/admin-sdk/src/ui/menu/index.ts:5