Brendan Carroll
5 Jul 2007, 7:03 PM
Greetings,
I'm wondering how to get form input elemnts to fill horizontally. I think I understand columns but want my checkboxes to fill the width of the column not stack vertically. Any thoughts?
var form = new Ext.form.Form({
labelAlign: 'left',
labelWidth: 5
});
form.column({autoCreate: {tag: 'div', cls: 'x-form-ct x-form-column', style: 'width: 100%;'}});
form.fieldset({legend:'Search For'},
new Ext.form.Radio({
boxLabel: 'Contract',
name: 'searchType',
labelSeparator: '',
inputValue: '422d'
}),
new Ext.form.Radio({
boxLabel: 'BMP',
name: 'searchType',
labelSeparator: '',
inputValue: '422d'
}),
new Ext.form.Radio({
boxLabel: 'Inspection',
name: 'searchType',
labelSeparator: '',
inputValue: '422d'
}),
new Ext.form.Radio({
boxLabel: 'SWM Facility',
name: 'searchType',
labelSeparator: '',
inputValue: '422d'
}),
new Ext.form.Radio({
boxLabel: 'Structure',
name: 'searchType',
labelSeparator: '',
inputValue: '422d'
})
);
form.end();
form.addButton('Save');
form.addButton('Cancel');
form.render('form-ct4');
Thx.
I'm wondering how to get form input elemnts to fill horizontally. I think I understand columns but want my checkboxes to fill the width of the column not stack vertically. Any thoughts?
var form = new Ext.form.Form({
labelAlign: 'left',
labelWidth: 5
});
form.column({autoCreate: {tag: 'div', cls: 'x-form-ct x-form-column', style: 'width: 100%;'}});
form.fieldset({legend:'Search For'},
new Ext.form.Radio({
boxLabel: 'Contract',
name: 'searchType',
labelSeparator: '',
inputValue: '422d'
}),
new Ext.form.Radio({
boxLabel: 'BMP',
name: 'searchType',
labelSeparator: '',
inputValue: '422d'
}),
new Ext.form.Radio({
boxLabel: 'Inspection',
name: 'searchType',
labelSeparator: '',
inputValue: '422d'
}),
new Ext.form.Radio({
boxLabel: 'SWM Facility',
name: 'searchType',
labelSeparator: '',
inputValue: '422d'
}),
new Ext.form.Radio({
boxLabel: 'Structure',
name: 'searchType',
labelSeparator: '',
inputValue: '422d'
})
);
form.end();
form.addButton('Save');
form.addButton('Cancel');
form.render('form-ct4');
Thx.