ToolBarToolComponent

Represents the Base ToolBar Tool component for Angular.
Extend this class to create custom tools.

Selector

toolbar-tool

Methods

canFocus

Determines if the tool can be focused.
If the returned value is false, the tool will not be part of the keyboard navigation.

Returns

boolean true if the tool should take part in keyboard navigation.

focus

Called when the tool is being focused using keyboard navigation or mouse click.

Parameters

ev? Event

the event that caused the tool to be focused.

handleKey

Called when an arrow key is pressed.

Parameters

ev KeyboardEvent

last pressed arrow key

Returns

boolean false if the tool hasn't handled the keyboard event and the toolbar has to pass the focus to the next/prev tool.