Interface for defining actions related to breadcrumbs with optional data payload.

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

Type Parameters

  • Data = IAnything

    The type of the data payload.

Hierarchy

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

Properties

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