concept element in category ext js

appears as: elements, n element, Element, element, elements
Ext JS in Action, Second Edition

This is an excerpt from Manning's book Ext JS in Action, Second Edition.

This code adds a string node to the innerHtml of your target div. What if you wanted to create an element? Easy as pie:

myDiv1.createChild('<div>Element from a string</div>');

This use of createChild will append a child div with the string 'Element from a string' to the innerHtml of div1. We don’t like to append children this way because we find the string representation of elements to be messy. Ext JS helps you with this problem by accepting a configuration object instead of a string:

Using Ext.Element is easy and makes some of the hardest tasks simple. To take advantage of Ext.Element, you need to set up a base page. Set up a page where you include the Ext JS and CSS, as we discussed in chapter 1. Next, include the following CSS and HTML:

Figure 3.5. The render phase of a component’s life can utilize a lot of CPU because it requires elements to be added to the DOM and calculations to be performed to properly size and manage them.