LabelComponent
Represents the Kendo UI Label component for Angular.
Associates a label with input elements or components.
<kendo-label [for]="input" text="First name">
<kendo-textbox #input></kendo-textbox>
</kendo-label>
Selector
kendo-label
Export Name
Accessible in templates as #kendoLabelInstance="kendoLabel"
Inputs
Name | Type | Default | Description |
---|---|---|---|
for |
|
Associates the label with a component by a template reference, or with an HTML element by id. | |
labelCssClass |
|
Sets the CSS Classes that will be rendered on the actual label element. Supports the type of values that are supported by ngClass directive. | |
labelCssStyle |
|
Sets the CSS Styles that will be rendered on the actual label element. Supports the type of values that are supported by ngStyle directive. | |
optional |
|
Allows marking a form field as optional. By default renders the The default value is | |
text |
|
Specifies the text content of the label which describes the input. |