Interface RowButtonTableAction

An action that is displayed as a button in the row of all table item.

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

Hierarchy (view full)

Properties

icon: string

Icon of the button that will be rendered in the table row *

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 for a specific row.

    Parameters

    • dataTable: DataTable

      the table that requests the display state.

    • rowItem: TableItem

      the row item for which the state is requested.

    Returns Partial<TableActionDisplayState>

  • Runs the action code.

    Parameters

    Returns Promise<void>

Generated using TypeDoc