2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

How to access Dom elements using extjs

How to access Dom elements using extjs
userimage

The Element API is fundamental to the entire Ext library.


Using traditional Javascript, selecting a DOM node by ID is done like this:


var elementtoaccess = document.getElementById('elementtoaccess');


Where using Extjs:


Ext.onReady(function() {
    var theElement = Ext.get('elementtoaccess');
});

Answer is