ItemTemplateDirective
Directive
Renders the list item content. To define the item template, nest an <ng-template> tag
with the kendo<ComponentName>ItemTemplate 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-dataItem directive.
Definition
Package:@progress/kendo-angular-dropdowns
Selector:[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]
Syntax:
ts
_@Component({
selector: 'my-app',
template: `
<kendo-combobox [data]="listItems">
<ng-template kendoComboBoxItemTemplate let-dataItem>
<span>{{dataItem}} option</span>
</ng-template>
</kendo-combobox>
`
})
class AppComponent {
public listItems: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
}