Skip to main content

Module: ui/main-module

Functions

addMainModule

addMainModule(messageOptions): Promise<void>

Parameters

NameType
messageOptionsMessageDataType<"mainModuleAdd">

Returns

Promise<void>

Defined in

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


addSmartBarButton

addSmartBarButton(messageOptions): Promise<void>

Parameters

NameType
messageOptionsMessageDataType<"smartBarButtonAdd">

Returns

Promise<void>

Defined in

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

Type Aliases

mainModuleAdd

Ƭ mainModuleAdd: Object

Type declaration

NameTypeDescription
responseTypevoid-
headingstringHeading of the main module.
locationIdstringThe locationId you want to display.
displaySearchBar?booleanToggles the sw-page search bar on/off. Defaults to true.
displayLanguageSwitch?booleanToggles the sw-page language switch on/off. Defaults to false.

Defined in

packages/admin-sdk/src/ui/main-module/index.ts:6


smartBarButtonAdd

Ƭ smartBarButtonAdd: Object

Type declaration

NameTypeDescription
responseTypevoid-
locationIdstringThe locationId you want to display.
buttonIdstringThe id of the button
labelstringThe label of the button
disabled?booleanToggle disabled state of the button
variant"primary" | "ghost" | "danger" | "ghost-danger" | "contrast" | "context"Set the variant of the button
onClickCallback() => voidCallback function which will be called once the button is clicked.

Defined in

packages/admin-sdk/src/ui/main-module/index.ts:32