Interface representing the options for scaffolding.

interface IScaffoldOption<T extends any = any> {
    action?: string;
    divider?: boolean;
    icon?: any;
    isDisabled?: (payload: T) => boolean | Promise<boolean>;
    isVisible?: (payload: T) => boolean | Promise<boolean>;
    label?: string;
    primary?: number | boolean;
}

Type Parameters

  • T extends any = any

    The payload type.

Hierarchy

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

Properties

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