extjs reuse object
Posted
by hafizan
on Stack Overflow
See other posts from Stack Overflow
or by hafizan
Published on 2010-06-18T04:42:56Z
Indexed on
2010/06/18
4:53 UTC
Read the original article
Hit count: 327
ext
If I had:
var x = new Ext.form.formPanel({
});
I wanted to reuse in two places, e.g.:
var panel1 = new Ext.panel({ items:[x] });
var panel2 = new Ext.panel({ items:[x] });
Have try method Ext.extend
but it did not work. If I do that it only renders one time on the page.
© Stack Overflow or respective owner