stephanoff
11 Sep 2009, 12:55 PM
Hi everyone!
I need ability to initialize components by remote configuration, for example, I have TabPanel, but configuration of every tab must be loaded from server side.
I try to find ready done solution, but failed and write my personal implementation. May be it will be helpful for someone else.
How to use:
var cfg = {
xtype: 'ux.remote',
autoLoad: {
url: '/path/to/remote/configuration'
}
};
Ext.create(cfg);
or
var cmp = new Ext.ux.RemoteComponent({
autoLoad: {
url: '/path/to/config'
}
});
16165
P.S. Sorry for my English :((
I need ability to initialize components by remote configuration, for example, I have TabPanel, but configuration of every tab must be loaded from server side.
I try to find ready done solution, but failed and write my personal implementation. May be it will be helpful for someone else.
How to use:
var cfg = {
xtype: 'ux.remote',
autoLoad: {
url: '/path/to/remote/configuration'
}
};
Ext.create(cfg);
or
var cmp = new Ext.ux.RemoteComponent({
autoLoad: {
url: '/path/to/config'
}
});
16165
P.S. Sorry for my English :((