Custom library adapters allow for the use of Ext JS with other libraries, say JQuery or Prototype. But Ext JS provides its own internal libraries for DOM manipulation as well.
The first task when manipulating the DOM(Document Object Model) is to find what we're looking for. The DomQuery
class provides us with several methods for this purpose, including returning entire groups of DOM nodes that meet specific criteria, or selecting a single node by its selector. We can even start the search from a specific node in the page. There are several different selector types that can be used when searching for a specific element:
base Element
SelectorsAttribute
SelectorsPseudo
ClassesCSS Value
Selectors
What's more, we can chain together a series of selectors to find the exact element we're searching for:
var myEl = Ext.DomQuery.selectNode ('a.iconLnk[@href*="cutterscrossing"]:first');
This will return the first anchor element...