PDA

View Full Version : extjs cutomizing formpanel buttons



saTester123
22 Jan 2013, 7:16 AM
I have
var form = new Ext.form.FormPanel(
{
title: 'Form Layout',
buttons: [
{text: 'Save'},
{text: 'Cancel'}
]
});


I want to customize the layout of these buttons so they appear one below the other. How do i apply layouts to these buttons?

willigogs
22 Jan 2013, 8:51 AM
Try:


var form = new Ext.form.FormPanel({
title: 'Form Layout',
buttons: [
{text: 'Save'},
{text: 'Cancel'}
],
cls: 'vertbuttons'
});


Then in your CSS:


.vertbuttons .x-toolbar-cell {
float:left;
clear:both;
}