Skip to main content

Module: ui/actionButton

Functions

add

add(messageOptions): Promise<void>

Parameters

NameType
messageOptionsMessageDataType<"actionButtonAdd">

Returns

Promise<void>

Defined in

src/channel.ts:462

Type Aliases

actionButtonAdd

Ƭ actionButtonAdd: Object

Add an ActionButton.

Type declaration

NameTypeDescription
responseTypevoid-
namestringUnique identifier for the action.
entity"product" | "order" | "category" | "promotion" | "customer"Defines which entity you're working on.
view"detail" | "list"Where the button should be added to. "detail" for the detail page "list" for the entity listing
labelstringLabel of your action button.
callback(entity: string, entityIdList: string[]) => voidCallback function which will be called once the action button is clicked.

Defined in

src/ui/actionButton/index.ts:8