Hello, How can I have floating label with some style applied like this:
<label>Name <span class="k-required">*</span></label>
In this example, https://stackblitz.com/edit/angular-q2kehs?file=app/app.component.ts, how can I transform the label to use floating label?
Thanks
Hi Carlos,
The desired styling can be achieved through CSS only in both the regular Label and FloatingLabel components. The approach relies on targeting the DOM element that contains the label text, and adding a colored symbol after it using the `::after` pseudoselector. The following example demonstrates a sample implementation:
https://stackblitz.com/edit/angular-et5dzv?file=src%2Fapp%2Fapp.component.ts
Due to the low customer demand and the presence of a straight-forward generic solution, we are closing this feature request.
Regards,
Dimiter Topalov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hello Svetlin, It seems my requirement was not clear enought. I do not want to format the label conditionally, I just want to have the same floating label in red(*) and other part of the floating label in black. I attach an image of what I need.
Thanks for your help