1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    94
    Vote Rating
    0
    newusername is on a distinguished road

      0  

    Default disaplayfield problem

    disaplayfield problem


    Hi ,

    How can I wordwrap a displayfield's value ?

    It is being shown like this

    Weight/Volume/Pallets:1,344 POUND/990.66241 CUFT/19

    I want

    Weight/Volume/Pallets:1,344 POUND
    /990.66241 CUFT
    /19

    How can I achieve this ?

    Please help me out ..

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi,

    Try the following code-
    Code:
    Ext.create('Ext.form.Panel', {
        renderTo: Ext.getBody(),
        width: 275,
        height: 120,
        bodyPadding: 10,
        title: 'Final Score',
        items: [{
            xtype: 'displayfield',
            labelWidth:140,
            fieldLabel: 'Weight/Volume/Pallets',
            name: 'home_score',
            value: '1,344 POUND <br/>/990.66241 CUFT<br/>/19 '
        }]
    });
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    94
    Vote Rating
    0
    newusername is on a distinguished road

      0  

    Default


    Thank you so much sir .. It is working ...

Thread Participants: 1