LabelComponent
Represents the Kendo UI Label component for Angular.
Associates a label with input elements or components.
@Component({
selector: 'my-app',
template: `
<kendo-label [for]="input" text="First name">
<input [(ngModel)]="name" kendoTextBox #input />
</kendo-label>
`
})
class AppComponent {
public name = 'John';
}
Selector
kendo-label
Export Name
Accessible in templates as #kendoLabelInstance="kendoLabel"
Inputs
NAME | TYPE | DEFAULT | DESCRIPTION |
---|---|---|---|
for | any | Associates the label with a component by a template reference, or with an HTML element by id. | |
optional | boolean | Allows marking a form field as optional. By default renders the The default value is | |
text | string | Specifies the text content of the label which describes the input. |