-
18 Feb 2013 12:20 AM #1
Unanswered: Styling textarea
Unanswered: Styling textarea
Hello guys!
I want styling my textarea field in dynamic. I find that it can be done by use setFieldStyle method of Ext.form.Field class, which take a css style config as arguments.
But I want use a css classes for this and I have no idea how to solve this issue?Code:field.setFieldStyle('background-color: #AEFDAC;');
-
18 Feb 2013 8:23 AM #2Sencha - Community Support Team
- Join Date
- May 2012
- Location
- Istanbul
- Posts
- 1,331
- Vote Rating
- 76
- Answers
- 124
use "fieldCls" config of the textfield
use "fieldCls" config of the textfield
Hi Mixo,
You can use "fieldCls" config of textfield component.
for more info read API docs- http://docs.sencha.com/ext-js/4-1/#!...t-cfg-fieldClssword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
18 Feb 2013 6:05 PM #3
Thanks for answer sword!
"fieldCls" config applyed on init component, but I need to change field style on text input - change bg color for valid\invalid data. In this case I can't apply new field class by setting fieldCls.


Reply With Quote