Interface for ToolbarButtonComponent props.

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


actualOnClick?: boolean

Trigger the button on the actual onClick event rather than onMouseDown.

See note in ToolbarButtonComponent below as to why the default is to trigger on onMouseDown.

className?: string
dataset?: DOMStringMap

Data set of the button

disabledTooltip?: string
enabled?: boolean
iconClass?: string
iconLabel?: string
label?: string
onClick?: (() => void)

Type declaration

    • (): void
    • Returns void

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

The application language translator.