All Components

HeaderTemplateDirective

Used for rendering the list header content.

To define the header template, nest a <template> tag with the kendo<ComponentName>HeaderTemplate directive inside the component tag.

Use:

  • The kendoDropDownListHeaderTemplate directive for the DropDownList.
  • The kendoComboBoxHeaderTemplate directive for the ComboBox.
  • The kendoAutoCompleteHeaderTemplate directive for the AutoComplete.
  • The kendoMultiSelectHeaderTemplate directive for the MultiSelect.
@Component({
selector: 'my-app',
template: `
 <kendo-combobox [data]="listItems">
   <template kendoComboBoxHeaderTemplate>
     <h4>Header template</h4>
   </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.

Selector

[kendoDropDownListHeaderTemplate],[kendoComboBoxHeaderTemplate],[kendoAutoCompleteHeaderTemplate],[kendoMultiSelectHeaderTemplate]

In this article