heidtmare
3 Aug 2007, 5:03 AM
how to i place a button inside of a fieldset?
myForm.fieldset(
{legend: 'Temporal'},
new Ext.form.DateField({
fieldLabel: 'Start',
name: 'start_date[]',
width:175,
format:'Y-m-d H:i:s',
emptyText:'yyyy-mm-dd h:m:s'
}),
new Ext.form.DateField({
fieldLabel: 'End',
name: 'end_date[]',
width:175,
format:'Y-m-d H:i:s',
emptyText:'yyyy-mm-dd h:m:s'
}),
//I want to put a button here...how do i do that?
);and, using the above formatting, how would I nest fieldsets?
I tried this :
myForm.fieldset(
{legend: 'Temporal'},
new Ext.form.fieldset(
{legend: 'Date Range'},
new Ext.form.DateField({
fieldLabel: 'Start',
name: 'start_date[]',
width:175,
format:'Y-m-d H:i:s',
emptyText:'yyyy-mm-dd h:m:s'
}),
new Ext.form.DateField({
fieldLabel: 'End',
name: 'end_date[]',
width:175,
format:'Y-m-d H:i:s',
emptyText:'yyyy-mm-dd h:m:s'
})
)
);But that didn't do so well :(
myForm.fieldset(
{legend: 'Temporal'},
new Ext.form.DateField({
fieldLabel: 'Start',
name: 'start_date[]',
width:175,
format:'Y-m-d H:i:s',
emptyText:'yyyy-mm-dd h:m:s'
}),
new Ext.form.DateField({
fieldLabel: 'End',
name: 'end_date[]',
width:175,
format:'Y-m-d H:i:s',
emptyText:'yyyy-mm-dd h:m:s'
}),
//I want to put a button here...how do i do that?
);and, using the above formatting, how would I nest fieldsets?
I tried this :
myForm.fieldset(
{legend: 'Temporal'},
new Ext.form.fieldset(
{legend: 'Date Range'},
new Ext.form.DateField({
fieldLabel: 'Start',
name: 'start_date[]',
width:175,
format:'Y-m-d H:i:s',
emptyText:'yyyy-mm-dd h:m:s'
}),
new Ext.form.DateField({
fieldLabel: 'End',
name: 'end_date[]',
width:175,
format:'Y-m-d H:i:s',
emptyText:'yyyy-mm-dd h:m:s'
})
)
);But that didn't do so well :(