UNPKG

@progress/kendo-angular-dropdowns

Version:
35 lines (34 loc) 1.17 kB
import { TemplateRef } from '@angular/core'; /** * Used for rendering the header content of the list. * * To define the header template, nest a `<ng-template>` tag with the `kendo<ComponentName>HeaderTemplate` directive inside the component tag. * * You can use: * - The `kendoAutoCompleteHeaderTemplate` directive for the AutoComplete. * - The `kendoComboBoxHeaderTemplate` directive for the ComboBox. * - The `kendoDropDownListHeaderTemplate` directive for the DropDownList. * - The `kendoMultiSelectHeaderTemplate` directive for the MultiSelect. * * @example * ```ts * _@Component({ * selector: 'my-app', * template: ` * <kendo-combobox [data]="listItems"> * <ng-template kendoComboBoxHeaderTemplate> * <h4>Header template</h4> * </ng-template> * </kendo-combobox> * ` * }) * class AppComponent { * public listItems: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"]; * } * ``` * For more examples, refer to the article on [templates]({% slug templates_ddl_kendouiforangular %}). */ export declare class HeaderTemplateDirective { templateRef: TemplateRef<any>; constructor(templateRef: TemplateRef<any>); }