-
22 Jan 2013 7:16 AM #1
extjs cutomizing formpanel buttons
extjs cutomizing formpanel buttons
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?
-
22 Jan 2013 8:51 AM #2
Try:
Then in your CSS:Code:var form = new Ext.form.FormPanel({ title: 'Form Layout', buttons: [ {text: 'Save'}, {text: 'Cancel'} ], cls: 'vertbuttons' });
Code:.vertbuttons .x-toolbar-cell { float:left; clear:both; }


Reply With Quote