All Components

ValueTemplateDirective

The valueTemplate directive is used for rendering the selected value of the component. It can only be used with the DropDownList.

@Component({
selector: 'my-app',
template: `
 <kendo-dropdownlist [data]="listItems">
   <template valueTemplate let-dataItem>
     <span>{{dataItem}} option</span>
   </template>
 </kendo-dropdownlist>
`
})
class AppComponent {
  public listItems: Array<string> = ["Item 1", "Item 2", "Item 3", "Item 4"];
}

For more examples, refer to Templates.

Selector

[valueTemplate]

In this article