Toolbarbutton class is a subclass of toolbar class. It cannot be used on its own but must always be encapsulated inside a toolbar class definition. Toolbarbutton class creates a single button for its super toolbar class.
Please note that the XML tag for this class is just <button>
,
not <toolbarbutton>
. See Toolbar class for an example.