SmartClient Version: v8.3_2012-11-20/LGPL Development Only (built 2012-11-20)
Firefox 19.0
SmartGWT will set the css class for some FormItem by default value if we don't set the class explicitly. For example, a TextItem will look like this:
There is a method in SmartGWT which sets a css class for some FormItem explicitly:
BUT this method removes all previous css classes including the default class. Is there a way not to remove but to append (or insert) some custom class to the FormItem? I want to get the following result:
SmartGWT will be changing the last css class during the user interaction according to the fired events. So I would insert my custom class before the default class in order to keep the FormItem looking the same:
I've tried to append my custom css class to the default one with something like this:
But getTextBoxStyle() always returns null. The method getTextBoxStyle() returns a value only if I set it before with setTextBoxStyle() explicitly.
Firefox 19.0
SmartGWT will set the css class for some FormItem by default value if we don't set the class explicitly. For example, a TextItem will look like this:
Code:
<input ... class="textItem" ...>
Code:
textItem.setTextBoxStyle("foo");
Code:
<input ... class="textItem foo" ...>
Code:
<input ... class="foo textItem" ...> <input ... class="foo textItemFocused" ...> <input ... class="foo textItemDisabled" ...> ect.
Code:
textItem.setTextBoxStyle(textItem.getTextBoxStyle() + " foo");
Comment