New to Kendo UI for Angular? Start a free 30-day trial
HeaderTemplateDirective
Renders the header content of the list. To define the header template, nest an <ng-template> tag
with the kendo<ComponentName>HeaderTemplate directive inside the component tag.
- Using
HeaderTemplatewith the AutoComplete - Using
HeaderTemplatewith the ComboBox - Using
HeaderTemplatewith the MultiColumnComboBox - Using
HeaderTemplatewith the DropDownList - Using
HeaderTemplatewith the DropDownTree - Using
HeaderTemplatewith the MultiSelect
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"];
}
Selector
[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoDropDownTreeHeaderTemplate],[kendoMultiColumnComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate],[kendoMultiSelectTreeHeaderTemplate]