Skip to main content

Module: ui/mainModule

Functions

addMainModule

addMainModule(messageOptions): Promise<void>

Parameters

NameType
messageOptionsMessageDataType<"mainModuleAdd">

Returns

Promise<void>

Defined in

src/channel.ts:462


addSmartBarButton

addSmartBarButton(messageOptions): Promise<void>

Parameters

NameType
messageOptionsMessageDataType<"smartBarButtonAdd">

Returns

Promise<void>

Defined in

src/channel.ts:462

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

src/ui/mainModule/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

src/ui/mainModule/index.ts:32