TagTemplateDirective
Directive
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
TagTemplatedirective can only be used with the MultiSelect and MultiSelectTree components.
Definition
Package:@progress/kendo-angular-dropdowns
Selector:[kendoMultiSelectTagTemplate],[kendoMultiSelectTreeTagTemplate]
Syntax:
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"];
}