Kvaser CanKing GUI Extensions SDK - v7.5.1
    Preparing search index...

    Interface ButtonProps

    Properties of a Button component displayed by the toolbar.

    interface ButtonProps {
        ariaLabel?: string;
        children?: ReactElement<
            DropdownButtonChildrenProps,
            string
            | JSXElementConstructor<any>,
        >;
        color?:
            | "inherit"
            | "primary"
            | "secondary"
            | "success"
            | "error"
            | "info"
            | "warning";
        disabled?: boolean;
        fullWidth?: boolean;
        icon?: ReactNode;
        onClick: () => void;
        size?: number | "small" | "medium" | "large";
        text?: string;
        tooltip?: string;
        variant?: "text" | "outlined" | "contained";
    }
    Index

    Properties

    ariaLabel?: string

    Aria label.

    children?: ReactElement<
        DropdownButtonChildrenProps,
        string
        | JSXElementConstructor<any>,
    >

    Chidren to be displayed in this button if this button should be a DropdownButton

    color?:
        | "inherit"
        | "primary"
        | "secondary"
        | "success"
        | "error"
        | "info"
        | "warning"

    The button color.

    disabled?: boolean

    Set to true to disable this button.

    fullWidth?: boolean

    Set to true to stretch this button to available width.

    icon?: ReactNode

    Icon to be displayed in this button.

    onClick: () => void

    Callback that will be called when this button has been clicked.

    size?: number | "small" | "medium" | "large"

    Size of this button.

    text?: string

    Text to be displayed in this button.

    tooltip?: string

    A tooltip of this button.

    variant?: "text" | "outlined" | "contained"

    The button variant.