UNPKG

@progress/kendo-angular-grid

Version:

Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.

38 lines (37 loc) 1.76 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { TemplateRef } from '@angular/core'; import * as i0 from "@angular/core"; /** * Represents the toolbar template of the Grid. * * The template context has the following field: * - `position`&mdash;The position at which the toolbar template is rendered. The possible values are `top`, `bottom`, and `both`. * * @example * ```html * <kendo-grid [data]="gridData" style="height: 200px"> * <ng-template kendoGridToolbarTemplate [position]="position" let-position="position"> * <button (click)="onClick()">Custom action</button> * </ng-template> * <kendo-grid-column field="ProductName"> * </kendo-grid-column> * </kendo-grid> * ``` */ export declare class ToolbarTemplateDirective { templateRef: TemplateRef<any>; _position: 'top' | 'bottom' | 'both'; /** * The position of the toolbar ([see example]({% slug toolbartemplate_grid %}#toc-setting-the-toolbar-position)). * * @default 'top' */ set position(position: 'top' | 'bottom' | 'both'); get position(): 'top' | 'bottom' | 'both'; constructor(templateRef: TemplateRef<any>); static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarTemplateDirective, [{ optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<ToolbarTemplateDirective, "[kendoGridToolbarTemplate]", never, { "position": { "alias": "position"; "required": false; }; }, {}, never, never, true, never>; }