map.apps Bundle APIs 4.20.2
    Preparing search index...

    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: string,
            dataTable: DataTable,
            rowItem?: TableItem,
        ): Partial<TableActionDisplayState> | undefined;
    }
    Index

    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.

      • OptionalrowItem: TableItem

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

      Returns Partial<TableActionDisplayState> | undefined

      the state. undefined if no state could be provided.