The toolbar items can be enabled/disabled by specifying the items in enableToolbarItems
or disableToolbarItems
methods respectively.
The following example shows enabling and disabling toolbar items on button click.
The new toolbar button is added using toolbarSettings. The toolbarClick event is used to add an event handler to the new toolbar button.
Output be like the below when enable toolbar item.
Output be like the below when enable toolbar item.