Represents an interface for grid actions.

interface IGridAction<T> {
    action?: string;
    divider?: boolean;
    icon?: any;
    isDisabled?: (
        row: T,
        payload: undefined | object,
    ) => boolean | Promise<boolean>;
    isVisible?: (
        row: T,
        payload: undefined | object,
    ) => boolean | Promise<boolean>;
    label?: string;
    primary?: number | boolean;
}

Type Parameters

  • T

    The type of the row data.

Hierarchy

  • Omit<IOption, keyof { isDisabled: never; isVisible: never }>
    • IGridAction

Properties

action?: string
divider?: boolean
icon?: any
isDisabled?: (row: T, payload: undefined | object) => boolean | Promise<boolean>
isVisible?: (row: T, payload: undefined | object) => boolean | Promise<boolean>
label?: string
primary?: number | boolean