New to Kendo UI for Angular? Start a free 30-day trial
TagTemplateDirective
Renders the selected tag value of the MultiSelect
(see example).
The template context is set to the current component.
To get a reference to the current data item, use the let-dataItem
directive.
The
TagTemplate
directive can only be used with the MultiSelect and MultiSelectTree components.
ts
@Component({
selector: 'my-app',
template: `
<kendo-multiselect [data]="items">
<ng-template kendoMultiSelectTagTemplate let-dataItem>
<span>{{dataItem}} option</span>
</ng-template>
</kendo-multiselect>
`
})
class AppComponent {
public items: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
}
Selector
[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]