PDA

View Full Version : Multi-line Panel Titles



Mahendru
24 Sep 2010, 6:13 AM
Hi,

I was wondering if Ext.Panel's 'title' config option can be multi-line. Additionally, how can I space the text? It seems to ignore white space and new line (\n) characters.

I have attached an image of what I am trying to achieve.

Thanks!

dlbjr
24 Sep 2010, 1:15 PM
var strTitle = '<table><tr><td align="left">Title Line 1</td><td align="right"> </td></tr><tr><td align="left">Title Line 2</td><td align="right">12345</td></tr></table>';

var panel = new Ext.Panel({
title: strTitle,
// What ever else
});

Mahendru
27 Sep 2010, 9:32 AM
var strTitle = '<table><tr><td align="left">Title Line 1</td><td align="right"> </td></tr><tr><td align="left">Title Line 2</td><td align="right">12345</td></tr></table>';

var panel = new Ext.Panel({
title: strTitle,
// What ever else
});



K, that works great. Thanks a lot!!