Interface ICardViewAction<ItemData, Payload>

Represents an interface for an action in a card view. This interface extends the Omit<IOption, keyof { isVisible: never; isDisabled: never; }> interface.

interface ICardViewAction<
    ItemData extends ICardViewItemData = any,
    Payload extends any = any,
> {
    action?: string;
    divider?: boolean;
    icon?: any;
    isDisabled?: (
        row: ItemData,
        payload: Payload,
    ) => boolean | Promise<boolean>;
    isVisible?: (row: ItemData, payload: Payload) => boolean | Promise<boolean>;
    label?: string;
    primary?: number | boolean;
}

Type Parameters

  • ItemData extends ICardViewItemData = any

    The type of data associated with the item.

  • Payload extends any = any

    The type of payload.

Hierarchy

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

Properties

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