Toolbars contain buttons for making functionality quickly accessible. There are two central toolbars that you might want to customize:
The Favorites toolbar on the left, which contains shortcuts to often-used functions
The Actions toolbar on the right, which contains buttons for completing the work on the current content
The following section describes how you can use the addItemsPlugin
to add your
custom button to an existing toolbar.
It is good practice to wrap the custom UI component's actual functionality (that is, what your
button will do when clicked) in Action
objects, so that these actions can be reused
even if the visual representation of the button is changed to another component. The background
of actions is described in Section 5.1.4, “Actions”.