Class ToolbarItem

Simple container for toolbar buttons content

Source : file toolbars/baseToolbar/ToolbarItem.js at line 31

Constructor

new ToolbarItem ( textContent, title, action )

The constructor

Source : file toolbars/baseToolbar/ToolbarItem.js at line 61

Parameters

Name Type Description
textContent String or Function

The text displayed on the toolbar button

title String

The tooltip text of the toolbar button

action Function or String

The action to be performed when the user click on the button. Can be a function or a link

Public getters and setters

readonly get textContent : String

The text displayed on the toolbar button

Source : file toolbars/baseToolbar/ToolbarItem.js at line 73

readonly get title : String

The tooltip text of the toolbar button

Source : file toolbars/baseToolbar/ToolbarItem.js at line 80

Public methods

doAction ( )

Execute the action registered for the item

Source : file toolbars/baseToolbar/ToolbarItem.js at line 86

Private properties

#action : Function or String

The action to be performed when the user click on the button. Can be a function or a link

Source : file toolbars/baseToolbar/ToolbarItem.js at line 52

#textContent : String

The text displayed on the toolbar button

Source : file toolbars/baseToolbar/ToolbarItem.js at line 38

#title : String

The tooltip text of the toolbar button

Source : file toolbars/baseToolbar/ToolbarItem.js at line 45