I couldn't figure out how to set class names on th...
# kvision
k
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
You can use
input
property to access
TextInput
component (apply is not required):
Copy code
Text {
    input.addCssClass("...")
}
k
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:
input.addCssClass("search-text1").addCssClass("search-text2")
is that fine?
r
yes
k
Cheers