@progress/kendo-angular-treelist
Version:
Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.
40 lines (39 loc) • 1.9 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* 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 { OptionChangesService } from '../../common/option-changes.service';
import * as i0 from "@angular/core";
/**
* Represents the toolbar template of the TreeList ([see example](slug:toolbartemplate_treelist)).
*
* The template context has the following field:
* - `position`—The position at which the toolbar template is rendered. The possible values are `top`, `bottom` and `both`.
*
* @example
* ```html
* <kendo-treelist ...>
* <ng-template kendoTreeListToolbarTemplate>
* <button kendoTreeListExcelCommand >
* Export to Excel
* </button>
* </ng-template>
* </kendo-treelist>
* ```
*/
export declare class ToolbarTemplateDirective {
templateRef: TemplateRef<any>;
private optionChanges;
_position: 'top' | 'bottom' | 'both';
/**
* The position of the toolbar ([see example](slug:toolbartemplate_treelist#toc-setting-the-toolbar-position)).
* The group panel or header and the second one below the pager.
* @default 'top'
*/
set position(position: 'top' | 'bottom' | 'both');
get position(): 'top' | 'bottom' | 'both';
constructor(templateRef: TemplateRef<any>, optionChanges: OptionChangesService);
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarTemplateDirective, [{ optional: true; }, null]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ToolbarTemplateDirective, "[kendoTreeListToolbarTemplate]", never, { "position": { "alias": "position"; "required": false; }; }, {}, never, never, true, never>;
}