Interface TableActionDisplayStateProvider

Used by the TableActionResolver implementation to allow the customization of the visible and enabled states of a row action.

interface TableActionDisplayStateProvider {
    provideDisplayState(actionId, dataTable, rowItem?): undefined | Partial<TableActionDisplayState>;
}

Methods

  • Provides the UI state information for an action.

    Parameters

    • actionId: string

      ID of the action to decide upon.

    • dataTable: DataTable

      the current data table.

    • Optional rowItem: TableItem

      the current row item. undefined if the state is requested for a BulkTableAction.

    Returns undefined | Partial<TableActionDisplayState>

    the state. undefined if no state could be provided.

Generated using TypeDoc