UNPKG

@progress/kendo-angular-dropdowns

Version:

A wide variety of native Angular dropdown components including AutoComplete, ComboBox, DropDownList, DropDownTree, MultiColumnComboBox, MultiSelect, and MultiSelectTree

47 lines (46 loc) 2.65 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"; /** * Renders the fixed group header content. To define the fixed group template, nest an `<ng-template>` tag * with the `kendo<ComponentName>FixedGroupTemplate` directive inside the component tag. The template context is * set to the current component. To get a reference to the current data item, use the `let-groupName` directive. * * - [Using `FixedGroupTemplate` with the AutoComplete]({% slug templates_autocomplete %}#toc-fixed-group-header-template) * - [Using `FixedGroupTemplate` with the ComboBox]({% slug templates_combobox %}#toc-fixed-group-header-template) * - [Using `FixedGroupTemplate` with the MultiColumnComboBox]({% slug templates_multicolumncombobox %}#toc-fixed-group-header-template) * - [Using `FixedGroupTemplate` with the DropDownList]({% slug templates_ddl %}#toc-fixed-group-header-template) * - [Using `FixedGroupTemplate` with the MultiSelect]({% slug templates_multiselect %}#toc-fixed-group-header-template) * * @example * ```ts * import { groupBy } from '@progress/kendo-data-query'; * _@Component({ * selector: 'my-app', * template: ` * <kendo-combobox [data]="groupedData" textField="name" valueField="name"> * <ng-template kendoComboBoxFixedGroupTemplate let-groupName> * <span>Food type: {{groupName}} option</span> * </ng-template> * </kendo-combobox> * ` * }) * class AppComponent { * public data = [ * { name: "Pork", category: "Food", subcategory: "Meat" }, * { name: "Pepper", category: "Food", subcategory: "Vegetables" }, * { name: "Beef", category: "Food", subcategory: "Meat" } * ]; * public groupedData = groupBy(this.data, [{field: "subcategory"}]); * } * ``` */ export declare class FixedGroupTemplateDirective { templateRef: TemplateRef<any>; constructor(templateRef: TemplateRef<any>); static ɵfac: i0.ɵɵFactoryDeclaration<FixedGroupTemplateDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<FixedGroupTemplateDirective, "[kendoDropDownListFixedGroupTemplate],[kendoComboBoxFixedGroupTemplate],[kendoMultiColumnComboBoxFixedGroupTemplate],[kendoAutoCompleteFixedGroupTemplate],[kendoMultiSelectFixedGroupTemplate]", never, {}, {}, never, never, true, never>; }