PDA

View Full Version : disaplayfield problem



newusername
15 Feb 2013, 5:45 AM
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 ..

sword-it
15 Feb 2013, 8:20 AM
Hi,

Try the following 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 '
}]
});

newusername
17 Feb 2013, 2:40 AM
Thank you so much sir .. It is working ...