PDA

View Full Version : space between items on form panel



coooolmagic
15 Nov 2010, 6:21 AM
hi all

what is the way of putting space between items of a form panel.
i.e. i have 3 buttons on a form panel, i can have padding:5 to provide space between form border and buttons but

between buttons there is no space at all...

can you help me

Screamy
15 Nov 2010, 12:29 PM
A button array accepts a single space enclosed in quotes as a button spacer. Here's an example form:


var myForm = {
xtype: 'form',
height: 70,
width: 300,
items: [{
xtype: 'textfield',
fieldLabel: 'Enter Something',
width: 150
}],
buttons: [{
text: 'Add'
},
' ',
{
text: 'Change'
},
' ',
{
text: 'Delete'
}]
}