Skip to main content

Toolbar ImageButton properties


const data = [
type: "imageButton";
src: string;
id?: string | number;
parent?: string | number;
css?: string | string[];
group?: string;
hotkey?: string;
tooltip?: string;
count?: number | string;
countColor?: "danger" | "secondary" | "primary" | "success";
multiClick?: boolean;
hidden?: boolean;
disabled?: boolean;
// more Toolbar controls


type(required) the type of a control, set it to "imageButton". If not specified - the "navItem" type is applied by default.
src(required) the path to the image
id(optional) the id of a control, auto-generated if not set
parent(optional) the parent of the item
css(optional) adds style classes to a button
group(optional) defines the name of a group of controls a button belongs to. If one of the buttons in the group becomes active, all others automatically become inactive
hotkey(optional) the name of the hot key for the button
tooltip(optional) a tooltip for the button
count(optional) a badge with a number
countColor(optional) the color of a badge with number: "danger" | "secondary" | "primary" | "success"
multiClick(optional) if true - the "click" event will fire multiple times when the button is clicked and held; if false - the "click" event will fire on each click of the button
hidden(optional) defines whether a button is hidden
disabled(optional) defines whether a button is disabled


Related article: ImageButton