I am trying to clone a <thead> element in Ext JS and append it to another location in the DOM.
I have this fiddle set up as an example:
Being new to the framework i am struggling a bit with the basics and cannot see why this code is not functioning for me.
The Ext.select method returns an instance of an
Ext.CompositeElement, which follows the Composite Pattern, meaning that it is an object that encapsulates multiple elements of the same type. To access the first table header DOM element from anExt.selectyou’d have to do something like:I’m not exactly sure why the
Ext.DomHelper.appendisn’t working, but the following code works: