Pages

Pages

Friday, July 23, 2010

Clone an ExtJS Component

Hi!

If you want to clone an ExtJS Component, you must you the cloneConfig() method from the Ext.form.Field object. For example,

//Component 1
var comp1 = new Ext.form.TextField({});

//Component cloning...
var comp2 = comp1.cloneConfig();


1 comment: