PDA

View Full Version : Ext.FormPanel title color



priyapratheep
11 Nov 2012, 8:26 PM
Hi friends

I want title of my Ext.FormPanel in red color.


var projectPurchasePanel = new Ext.FormPanel({
labelWidth: 100,
title: 'PROJECT PURCHASE',
frame:true,
bodyStyle:'padding:5px 5px 0',
width: 1090,
defaults: {width: 1070}
});

how to change PROJECT PURCHASE to somecolor.

Thanks in advance

sword-it
12 Nov 2012, 1:22 AM
Hi priyapratheep,

Try this code-



title: '<div style="color:red;">Project Purchase</div>',

willigogs
12 Nov 2012, 1:55 AM
Alternatively, give the panel an ID or Class, then in your stylesheet do something like the following:

.yourclass .x-panel-header {color:#f00;}

priyapratheep
13 Nov 2012, 5:35 PM
Thanks a lot ....