PDA

View Full Version : Html in selects and pickers



bionicmaster
28 Aug 2012, 11:21 AM
Hi, I'm doing some form for my development and I'm trying to inject my questions into selects (pickers in iphone) but when I inject some <br> or \n in my code (some questions are larger than the visual space) it overrides it and converts to text, how I can insert this texts in 2 lines for complete reading?

Thanks

mitchellsimoens
30 Aug 2012, 4:53 AM
This works for Ext.picker.Picker:


var picker = new Ext.Picker({
slots : [
{
name : 'test',
title : 'Test',
data : [
{ text : '1 First<br />Second', value : 50 },
{ text : '100 KB/s', value : 100 },
{ text : '200 KB/s', value : 200 },
{ text : '300 KB/s', value : 300 }
]
}
]
});
Ext.Viewport.add(picker);
picker.show();

You would need to do some CSS to have it look proper but it's not encoding the <br /> for me.