PDA

View Full Version : ButtonGroup inside FieldSet



darkhorni
7 Feb 2013, 6:05 AM
deleted

sword-it
7 Feb 2013, 7:04 AM
Hi,

Try following code:




Ext.create('Ext.form.Panel', {
title: 'Simple Form with FieldSet',
labelWidth: 75,
url: 'save-form.php',
frame: true,
bodyStyle: 'padding:5px 5px 0',
width: 550,
renderTo: Ext.getBody(),
layout: 'column',
defaults: {
bodyPadding: 4
},
items: [{
xtype:'fieldset',
columnWidth: 0.5,
height:150,
title: 'Fieldset 1',
collapsible: true,
defaultType: 'textfield',
defaults: {anchor: '100%'},
layout: 'anchor',
items :[{
fieldLabel: 'Field 1',
name: 'field1'
}, {
fieldLabel: 'Field 2',
name: 'field2'
},{
xtype:'buttongroup'
, items:[{
text:'Home'
},{
text:'About'
},{
text:'Contact'
},{
text:'Active'
}]
}]
}]
});