Ext.Element
- Fundamental building block in Ext
- Wraps DOM nodes (aggregation rather than inheritance)
- Provides positioning, DOM and CSS functions, drag & drop, Ajax and a lot more
- Provides animation if the Fx class is included
- Allows access to the raw DOM node via Element.dom
A few examples (see the Ext.Element API for many more):
var el = Ext.get('box1');
el.move('up', 250, true).update('Changed!');
var el2 = Ext.get('box2')
el2.alignTo(el).setSize(300, 150, true).highlight();
Box 1
Box 2