UNPKG

@progress/kendo-angular-dropdowns

Version:
43 lines (42 loc) 1.31 kB
/* tslint:disable:max-line-length */ import { Directive, TemplateRef } from '@angular/core'; /** * Used for rendering the selected tag value. It can only be used with the MultiSelect component. * * The template context is set to the current MultiSelect. To get a reference to the current data item, use the `let-dataItem` directive. * * @example * ```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"]; * } * ``` * * For more examples, refer to the article on [templates]({% slug templates_multiselect_kendouiforangular %}). */ var TagTemplateDirective = (function () { function TagTemplateDirective(templateRef) { this.templateRef = templateRef; } return TagTemplateDirective; }()); export { TagTemplateDirective }; TagTemplateDirective.decorators = [ { type: Directive, args: [{ selector: '[kendoMultiSelectTagTemplate]' },] }, ]; /** @nocollapse */ TagTemplateDirective.ctorParameters = function () { return [ { type: TemplateRef, }, ]; };