Interface BulkButtonTableAction

An action that is displayed as a button in a table's menu bar.

interface BulkButtonTableAction {
    icon: string;
    id: string;
    label: string;
    priority?: number;
    provideDisplayState?(dataTable): Partial<TableActionDisplayState>;
    tooltip: string;
    trigger(actionContext): Promise<void>;
}

Hierarchy (view full)

Properties

icon: string

Icon of the button that will be rendered in the menu bar. *

id: string

ID used to identify this action.

label: string

Label that might be rendered on a button beside or instead of the icon. *

priority?: number

optional flag of actions used as source of ordering. *

tooltip: string

Tooltip that is displayed, when hovering the button. *

Methods

  • Actions can optionally provide a display state that controls if this action is visible or enabled in a table's menu bar.

    Parameters

    • dataTable: DataTable

      the table that requests the display state.

    Returns Partial<TableActionDisplayState>

  • Runs the action code.

    Parameters

    Returns Promise<void>

Generated using TypeDoc