UNPKG

@progress/kendo-angular-gantt

Version:
40 lines (39 loc) 1.9 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { ToolbarPosition } from '../models/toolbar-settings'; import { TemplateRef } from '@angular/core'; import * as i0 from "@angular/core"; /** * Represents the toolbar template of the Gantt. * * The template context includes: * - `position`&mdash;The position where the toolbar template renders. Possible values are `'top'` and `'bottom'`. * * @example * ```html * <kendo-gantt [kendoGanttHierarchyBinding]="data" [style.height.px]="400"> * <ng-template kendoGanttToolbarTemplate [position]="position" let-position="position"> * <button kendoButton (click)="onClick()">Custom action</button> * </ng-template> * </kendo-gantt> * ``` */ export declare class ToolbarTemplateDirective { templateRef: TemplateRef<any>; _position: ToolbarPosition; /** * Sets the Gantt Toolbar that uses this template. * * Possible values: * - `top`&mdash;Renders the template in the top toolbar (if present) only. * - `bottom`&mdash;Renders the template in the bottom toolbar (if present) only. * - `both`&mdash;Renders the template in both toolbars (if present). */ set position(position: ToolbarPosition); get position(): ToolbarPosition; constructor(templateRef: TemplateRef<any>); static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarTemplateDirective, [{ optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<ToolbarTemplateDirective, "[kendoGanttToolbarTemplate]", never, { "position": { "alias": "position"; "required": false; }; }, {}, never, never, true, never>; }