Interface for ToolbarButtonComponent props.

interface IProps {
    className?: string;
    dataset?: DOMStringMap;
    disabledTooltip?: string;
    enabled?: boolean;
    icon?: IMaybeResolvable;
    iconClass?: string;
    iconLabel?: string;
    label?: string;
    noFocusOnClick?: boolean;
    onClick?: (() => void);
    pressed?: boolean;
    pressedIcon?: IMaybeResolvable;
    pressedTooltip?: string;
    tooltip?: string;
    translator?: ITranslator;
}

Properties

className?: string
dataset?: DOMStringMap

Data set of the button

disabledTooltip?: string
enabled?: boolean
iconClass?: string
iconLabel?: string
label?: string
noFocusOnClick?: boolean

Trigger the button on onMouseDown event rather than onClick, to avoid giving the focus on the button.

onClick?: (() => void)

Type declaration

    • (): void
    • Returns void

pressed?: boolean
pressedIcon?: IMaybeResolvable
pressedTooltip?: string
tooltip?: string
translator?: ITranslator

The application language translator.