-
11 Nov 2012 8:26 PM #1
Ext.FormPanel title color
Ext.FormPanel title color
Hi friends
I want title of my Ext.FormPanel in red color.
how to change PROJECT PURCHASE to somecolor.Code:var projectPurchasePanel = new Ext.FormPanel({ labelWidth: 100, title: 'PROJECT PURCHASE', frame:true, bodyStyle:'padding:5px 5px 0', width: 1090, defaults: {width: 1070} });
Thanks in advance
-
12 Nov 2012 1:22 AM #2
Hi priyapratheep,
Try this code-
Code:title: '<div style="color:red;">Project Purchase</div>',
sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
12 Nov 2012 1:55 AM #3
Alternatively, give the panel an ID or Class, then in your stylesheet do something like the following:
Code:.yourclass .x-panel-header {color:#f00;}
-
13 Nov 2012 5:35 PM #4


Reply With Quote