FloatingLabelComponent
Represents the Kendo UI FloatingLabel component for Angular.
Use this component to provide floating labels to input
elements.
The FloatingLabel supports Template and Reactive Forms.
You can use it with Kendo UI for Angular Inputs components such as kendo-combobox
, kendo-numerictextbox
, or kendo-textbox
.
See example.
<kendo-floatinglabel text="First name">
<kendo-textbox [(ngModel)]="name"></kendo-textbox>
</kendo-floatinglabel>
Selector
kendo-floatinglabel
Export Name
Accessible in templates as #kendoFloatingLabelInstance="kendoFloatingLabel"
Inputs
Name | Type | Default | Description |
---|---|---|---|
id |
|
Sets the | |
labelCssClass |
|
Sets the CSS classes for the label element.
Accepts values supported by the | |
labelCssStyle |
|
Sets the CSS styles for the internal label element.
Accepts values supported by the | |
optional |
|
|
Marks a form field as optional. When enabled, renders the |
text |
|
Sets the text content of the floating label that describes the input. |
Fields
Name | Type | Default | Description |
---|---|---|---|
labelPosition |
|
Gets the current floating label position. |
Events
Name | Type | Description |
---|---|---|
positionChange |
|
Fires after the FloatingLabel position changes. |