I couldn't figure out how to set class names on the component.
-> By adding a class using addCssClass it is actually adding the class on the outer <div>
-> The addCssStyle is not applying the style on the textbox.
I might be doing something wrong here.. Any clue?
r
Robert Jaros
04/10/2021, 12:14 PM
You can use
input
property to access
TextInput
component (apply is not required):
Copy code
Text {
input.addCssClass("...")
}
k
Kumaran Masilamani
04/10/2021, 12:19 PM
great! that worked. Also, how to give multiple classes? by giving a space delimited, it throws a DOMException in the browser. I am using like this: