This is a button with an image. Unlike Button, it does not have a text label, but can also have a badge with a number and can be two state.

Related sample:  Toolbar. Image Button

Adding ImageButton

ImageButton can be easily added to a toolbar with the help of the add() method of Tree Collection:{
    type: "imageButton",
    count: 10,
    src: "../img/avatar.png"


You can provide the following attributes in the configuration object of an imageButton:

Working with ImageButton

Just like Button, imageButton can be hidden, disabled and can have a tooltip.

Check the full list of available operations in the Toolbar API and Tree Collection API.

Back to top