ToolbarItem
Constructors
Description
Creates a new toolbar item.
Members
Description
Gets or sets whether the toolbar item is enabled or not. Note if set to false, the toolbar item may still be shown but dimmed to represent a disabled state.
Description
Gets or sets the image to use on the toolbar item.
Description
Gets or sets the text label on the toolbar item.
Description
Gets or sets the tool tip on the toolbar item.
Methods
Description
Adds an event listener for various control level events. The first parameter is the name of the event, the second parameter is the function to call when the event happens (e.g., a callback).
Parameters
Name | Type | Description |
---|---|---|
eventName | string | The name of the control event to start listening to. |
callback | function | The function that will be called when it occurs. |
Description
Removes an event listener for various control level events. The first parameter is the name of the event, the second parameter is the function that was originally given as the callback for addEventListener.
Parameters
Name | Type | Description |
---|---|---|
eventName | string | The name of the control event to stop listening to. |
callback | function | The function that would have been called. |