PDA

View Full Version : how to arrange an textfield and a button to one line horizontally?



tianhao
3 Sep 2012, 7:40 PM
hi all,
i have a form like this: extjs4
xtype: 'form',......
items: [{ xtype: 'textfield', fieldLabel: 'query string', id: 'query' }],
buttons: [{ text: 'query' }]......
so, the textfield and the button are arranged vertically, not in one line horizontally.
the question is, how to arrange the textfield and the button to one line horizontally?
thanks.

tianhao
3 Sep 2012, 8:10 PM
use dockedItems with dock='right'