UNPKG

@shopware-ag/meteor-admin-sdk

Version:

The Meteor SDK for the Shopware Administration.

30 lines (29 loc) 881 B
export declare const add: (messageOptions: import("../../channel").MessageDataType<"actionButtonAdd"> & import("../../channel").BaseMessageOptions) => Promise<void>; /** * Add an ActionButton. */ export type actionButtonAdd = { responseType: void; /** * Unique identifier for the action. */ name: string; /** * Defines which entity you're working on. */ entity: 'product' | 'order' | 'category' | 'promotion' | 'customer' | 'media'; /** * Where the button should be added to. * "detail" for the detail page * "list" for the entity listing */ view: 'detail' | 'list' | 'item'; /** * Label of your action button. */ label: string; /** * Callback function which will be called once the action button is clicked. */ callback: (entity: string, entityIdList: string[]) => void; };