PDA

View Full Version : set an item or change color to let us find the real panel



dotskeshav
17 Sep 2014, 3:30 AM
How to set minimum one element in ExtJs 3.4 panel or set background-color or other property which will let us know that we are working on right panel while displaying.

I tried this but it show no label in Panel


CustomPanel = Ext.extend(Ext.Panel, {
constructor: function(config) {
config = config || {};
Ext.apply({
layout: 'form',
labelAlign: 'left',
labelWidth: 85,
style: 'background-color:red', // this doesn't work
defaultType: 'textfield',
width: 600,
height: 400,
items: [
{
xtype: 'label',
text :'fisrt label',
}

],
}, config );
CustomPanel.superclass.constructor.call(this, config);
}
}
)


if we create an instance of this and set Style then it works


this.dotmailerCenterPanel = new CustomPanel({
region:'center',
title:'Some title',
style: 'border: 2px solid green;',
bodyStyle: 'background: red;',
})

Animal
19 Sep 2014, 11:31 PM
I assume you have solved this now?