Represents an option configuration for IBreadcrumbs2 component.

interface IBreadcrumbs2Option<Data = IAnything> {
    action?: string;
    actions?: IBreadcrumbs2Action<Data>[];
    buttonColor?:
        | "error"
        | "inherit"
        | "primary"
        | "secondary"
        | "success"
        | "info"
        | "warning";
    buttonVariant?: "outlined"
    | "text"
    | "contained";
    compute?: (payload: Data) => string | Promise<string>;
    divider?: boolean;
    element?: any;
    fabColor?:
        | "error"
        | "inherit"
        | "primary"
        | "secondary"
        | "success"
        | "info"
        | "warning";
    icon?: any;
    isDisabled?: (payload: Data) => boolean | Promise<boolean>;
    isVisible?: (payload: Data) => boolean | Promise<boolean>;
    label?: any;
    outlined?: boolean;
    primary?: number | boolean;
    sx?: any;
    type: Breadcrumbs2Type;
}

Type Parameters

  • Data = IAnything

    The type of additional data associated with the option.

Hierarchy

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

Properties

action?: string
buttonColor?:
    | "error"
    | "inherit"
    | "primary"
    | "secondary"
    | "success"
    | "info"
    | "warning"
buttonVariant?: "outlined" | "text" | "contained"
compute?: (payload: Data) => string | Promise<string>
divider?: boolean
element?: any
fabColor?:
    | "error"
    | "inherit"
    | "primary"
    | "secondary"
    | "success"
    | "info"
    | "warning"
icon?: any
isDisabled?: (payload: Data) => boolean | Promise<boolean>
isVisible?: (payload: Data) => boolean | Promise<boolean>
label?: any
outlined?: boolean
primary?: number | boolean
sx?: any