type | (string) the type of a control, set it to "imageButton". If not specified - the "navItem" type is applied by default. |
id | (string, number) the id of a control, auto-generated if not set |
parent | (string) the parent of the item |
src | (string) the path to the image |
css | (string|string[]) adds style classes to a button |
twoState | (boolean) adds two states to the button: active (pressed) and inactive (unpressed) |
group | (string) 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 |
active | (boolean) sets the state of a twoState button |
hotkey | (string) the name of the hot key for the button |
tooltip | (string) a tooltip for the button |
count | (number) a badge with a number |
countColor | (string) the color of a badge with number: "danger" | "secondary" | "primary" | "success" |
size | (string) defines the size of a button: "small"|"medium"|"auto" |
hidden | (boolean) defines whether a button is hidden |
disabled | (boolean) defines whether a button is disabled |