UNPKG

@progress/kendo-angular-toolbar

Version:

Kendo UI Angular Toolbar component - a single UI element that organizes buttons and other navigation elements

66 lines (65 loc) 2.7 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Component, forwardRef } from '@angular/core'; import { ToolBarToolComponent } from './toolbar-tool.component'; import * as i0 from "@angular/core"; /** * Represents the [Kendo UI ToolBar Spacer for Angular]({% slug controltypes_toolbar %}#toc-separators). */ export class ToolBarSpacerComponent extends ToolBarToolComponent { /** * @hidden */ __isSpacer = true; constructor() { super(); this.isBuiltInTool = true; } /** * @hidden */ canFocus() { return false; } // If this is not here, the docs display info from its parent(ToolBarToolComponent). /** * @hidden */ focus() { /* noop */ } // If this is not here, the docs display info from its parent(ToolBarToolComponent). /** * @hidden */ handleKey() { return false; } ngAfterViewInit() { if (!this.popupTemplate) { this.popupTemplate = this.toolbarTemplate; } } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ToolBarSpacerComponent, isStandalone: true, selector: "kendo-toolbar-spacer", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSpacerComponent) }], exportAs: ["kendoToolBarSpacer"], usesInheritance: true, ngImport: i0, template: ` <ng-template #toolbarTemplate> <div class="k-spacer"></div> </ng-template> `, isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ToolBarSpacerComponent, decorators: [{ type: Component, args: [{ exportAs: 'kendoToolBarSpacer', providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => ToolBarSpacerComponent) }], selector: 'kendo-toolbar-spacer', template: ` <ng-template #toolbarTemplate> <div class="k-spacer"></div> </ng-template> `, standalone: true }] }], ctorParameters: function () { return []; } });