simonr25
31 Dec 2011, 4:45 AM
Hello,
I have created a Ext.form.FormPanel with items as below.
I require to change the background color of the textfields only, not the field labels aswell.
so the line below, style: 'background-color: #FFFFE0;' doesn't work.
How can this be done?
kind regards,...
...
var formPanel = Ext.create('Ext.form.FormPanel', { //
itemId : 'formPanel',
frame : true,
layout : 'anchor',
defaultType : 'textfield',
defaults : {
anchor : '-10',
labelWidth : 65
},
items : [
{
fieldLabel : 'First name',
name : 'firstName',
style: 'background-color: #FFFFE0;'
},
{
fieldLabel : 'Last name',
name : 'lastName'
}
],
...
I have created a Ext.form.FormPanel with items as below.
I require to change the background color of the textfields only, not the field labels aswell.
so the line below, style: 'background-color: #FFFFE0;' doesn't work.
How can this be done?
kind regards,...
...
var formPanel = Ext.create('Ext.form.FormPanel', { //
itemId : 'formPanel',
frame : true,
layout : 'anchor',
defaultType : 'textfield',
defaults : {
anchor : '-10',
labelWidth : 65
},
items : [
{
fieldLabel : 'First name',
name : 'firstName',
style: 'background-color: #FFFFE0;'
},
{
fieldLabel : 'Last name',
name : 'lastName'
}
],
...