-
25 Jan 2011 4:36 AM #1
linebreak in label
linebreak in label
how can i make a linebreak in my labels.
i used \n /n <br> {\n} {/n}
but nothing worked. whats the useness of this ?
-
25 Jan 2011 12:24 PM #2
I just verified one of two of my input textfields (on a FormPanel with normal border layout)... Changed the label from "Name" to "Name<br>OtherText". And this works fine ! Try to set somehow the height of your element (via, style, labelStyle, etc...).
-
26 Jan 2011 1:28 AM #3
ok, will try thnx for now
the reason why it dont see the html tag was because i define it like
but the text attribute doesnt renders html tags, we have to usePHP Code:{
xtype: 'label',
text: 'my<br>header'
}
instead of the first.PHP Code:{
xtype: 'label',
html: 'my<br>header'
}
p.s: dont forget in mind that text attribute overrides the html attribute if both are specifiedLast edited by slckysr; 26 Jan 2011 at 1:40 AM. Reason: solved
-
26 Jan 2011 5:02 AM #4
PHP Code:
{
xtype: 'label',
text: 'my<br>header'
}
works too !
-
26 Jan 2011 5:11 AM #5
there must be an exception then cause i use the ext.ux.wiz user extension maybe there are not parsed html tags.
ok for now this has been done
Similar Threads
-
Tooltip linebreak problem
By hflipman in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 13 Feb 2010, 1:15 PM -
Combobox Creates Linebreak
By nromanel in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 25 Sep 2009, 1:11 PM -
Linebreak between buttons in panel
By bernd01 in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 29 Apr 2009, 4:43 PM -
problem with automatic linebreak
By Avaron in forum Ext GWT: Help & Discussion (1.x)Replies: 0Last Post: 28 Nov 2008, 6:59 AM


Reply With Quote