New to Kendo UI for Angular? Start a free 30-day trial
PrefixTemplateDirective
Specifies the adornments in the prefix container of the Inputs and DropDowns.
ts
_@Component({
selector: 'my-app',
template: `
<kendo-textbox>
<ng-template kendoPrefixTemplate>
<button kendoButton look="clear" icon="image"></button>
</ng-template>
</kendo-textbox>
<kendo-multiselect [data]="data" [(ngModel)]="value">
<ng-template kendoPrefixTemplate>
<button kendoButton look="clear" icon="image"></button>
</ng-template>
</kendo-multiselect>
`
})
class AppComponent {}
Name | Type | Default | Description |
---|---|---|---|
showSeparator |
|
|
Sets the |
templateRef |
|
Constructors
PrefixTemplateDirective
(templateRef: TemplateRef<any>)
Parameters
templateRef
TemplateRef<any>