This is a button with an image. Unlike a 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
ImageButton can be easily added to a toolbar with the help of the add() method of Tree Collection:
You can provide the following properties in the configuration object of an ImageButton control.
Working with ImageButton
Just like a button, imageButton can be hidden, disabled and can have a tooltip. You can also manipulate the states of a two state imageButton.