Toolbar.removeToolbarItem Method

Remove a toolbarItem from the toolbar.
 

Parameters

toolbarItem

Type: ToolbarItem
The toolbarItem to remove
doNotDispose

Type: boolean
(Optional) True to prevent disposal of the toolbar item.