Using Html Id in ExtJS4
I am new to 开发者_开发技巧ExtJS4.May i know how to get html Id in ExtJS4.If you have a sample please share with me.
In ExtJS4 you can get dom node by it's id using:
Ext.DomQuery.selectNode('#example_div');
or using oldschool js:
document.getElementById('example_div');
You can try
var elDom = Ext.getDom('example_div');
I have not used it but found it in the docs.
精彩评论