Skip to main content

Module: ui/action-button

Functions

add

add(messageOptions): Promise<void>

Parameters

NameType
messageOptionsMessageDataType<"actionButtonAdd">

Returns

Promise<void>

Defined in

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

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

packages/admin-sdk/src/ui/action-button/index.ts:8