i_love_sc
06-05-2007, 11:03 AM
I'm from China and I have focused on Ext for about 2 months.
Now I have an idea, look at this:
// the following code is fake
var form = {
fieldset: {
legend: 'User Form',
columns: [
// the first column
{
TextField: {
name: 'name'
},
NumberField: {
name: 'price'
}
},
// the second column
{
HtmlEditor: {
width: 550,
height: 220
}
}]
}
};
Ext.form.Manager.create(form);
Also, we can config "store", "datareader", etc, anything if we like.
Also generally, it would be a nice way to build some composite components such as "paged datagrid which has contextmenu", "complex layerout" and etc.
Now I have an idea, look at this:
// the following code is fake
var form = {
fieldset: {
legend: 'User Form',
columns: [
// the first column
{
TextField: {
name: 'name'
},
NumberField: {
name: 'price'
}
},
// the second column
{
HtmlEditor: {
width: 550,
height: 220
}
}]
}
};
Ext.form.Manager.create(form);
Also, we can config "store", "datareader", etc, anything if we like.
Also generally, it would be a nice way to build some composite components such as "paged datagrid which has contextmenu", "complex layerout" and etc.