I've been experimenting with the ExtJS
properties cls
, bodyCls
, and componentCls
but unfortunately, I'm not achieving the desired outcome.
As an illustration:
Ext.create('Ext.form.Panel', {
renderTo: document.body,
title: 'User Form',
height: 350,
width: 300,
cls: 'form',
bodyPadding: 10,
defaultType: 'textfield',
items: [{
fieldLabel: 'First Name',
name: 'firstName'
}, {
fieldLabel: 'Last Name',
name: 'lastName'
}, {
xtype: 'datefield',
fieldLabel: 'Date of Birth',
name: 'birthDate'
}]
});
Regarding CSS:
.form {
background-color:orange !important;
}
Despite setting the background color to orange in the CSS, the desired result is still eluding me.
ANY ASSISTANCE WOULD BE EXTREMELY APPRECIATED