1. #1
    Ext User
    Join Date
    Nov 2010
    Location
    Turkey
    Posts
    72
    Vote Rating
    0
    slckysr is on a distinguished road

      0  

    Question 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 ?

  2. #2
    Sencha User
    Join Date
    Oct 2010
    Posts
    157
    Vote Rating
    0
    valititi is on a distinguished road

      0  

    Default


    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...).

  3. #3
    Ext User
    Join Date
    Nov 2010
    Location
    Turkey
    Posts
    72
    Vote Rating
    0
    slckysr is on a distinguished road

      0  

    Thumbs up


    ok, will try thnx for now


    the reason why it dont see the html tag was because i define it like

    PHP Code:
    {
        
    xtype'label',
        
    text'my<br>header'

    but the text attribute doesnt renders html tags, we have to use

    PHP Code:
    {
        
    xtype'label',
        
    html'my<br>header'

    instead of the first.

    p.s: dont forget in mind that text attribute overrides the html attribute if both are specified
    Last edited by slckysr; 26 Jan 2011 at 1:40 AM. Reason: solved

  4. #4
    Sencha User
    Join Date
    Oct 2010
    Posts
    157
    Vote Rating
    0
    valititi is on a distinguished road

      0  

    Default


    PHP Code:
    {
    xtype: 'label',
    text: 'my<br>header'
    }
    works too !

  5. #5
    Ext User
    Join Date
    Nov 2010
    Location
    Turkey
    Posts
    72
    Vote Rating
    0
    slckysr is on a distinguished road

      0  

    Default


    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

  1. Tooltip linebreak problem
    By hflipman in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 13 Feb 2010, 1:15 PM
  2. Combobox Creates Linebreak
    By nromanel in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 25 Sep 2009, 1:11 PM
  3. Linebreak between buttons in panel
    By bernd01 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 29 Apr 2009, 4:43 PM
  4. problem with automatic linebreak
    By Avaron in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 28 Nov 2008, 6:59 AM

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar