Class: ToolButton

UI.Components. ToolButton


new ToolButton()

Creates a new instance of ToolButton.
Properties:
Name Type Description
properties ItemProperties An object that contains the properties of the ToolButton.
Properties
Name Type Argument Description
label string <optional>
The label of the button.
img string <optional>
The icon of the button.
toolName string The name of the tool that the button activates. Refer to: Core.Tools.ToolNames
Example
const toolButton = new instance.UI.Components.ToolButton({
  label: 'Pan',
  title: 'Pan the document',
  img: 'icon-header-pan',
  toolName: 'Pan',
});

Extends