ToolBarToolComponent
Represents the base ToolBar Tool component for Angular.
Extend this class to create a custom tool for the ToolBar.
Definition
Package:@progress/kendo-angular-toolbar
Syntax:
import { Component } from '@angular/core';
import { ToolBarToolComponent } from '@progress/kendo-angular-toolbar';
@Component({
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => CustomToolComponent) }],
selector: 'custom-tool',
})
export class CustomToolComponent extends ToolBarToolComponent {
constructor() {
super();
}
}
Methods
Determines if the tool can receive focus.
Returns true if the tool participates in keyboard navigation.
boolean
true if the tool is focusable.
Called when the tool receives focus.
Accepts the original browser event, which can be a KeyboardEvent, MouseEvent, or FocusEvent.
The event that triggers focus for the tool.
Called when the tool is focused and an arrow key is pressed, or when another tool is activated with a click.
Returns a boolean value that determines if the ToolBarComponent moves focus to the next or previous tool
(see example).
The last pressed arrow key or the click that activates another tool.
Returns:boolean
true if focus moves to another tool.