PDA

View Full Version : Working with component



darkskynyr
23 Jan 2013, 6:02 AM
var vHidden = ext.componentquery.query('ToolAddNote');
var xHidden = ext.get('AddNote');
vHidden.enable();
xHidden.enable();

I have a disabled button with idname : ToolAddNote and id : AddNote. But i can't enable it when write click event for another one. I don't know if my code have any wrong.

Thank for your help

mitchellsimoens
28 Jan 2013, 1:24 PM
As long as you are getting the component instance you want it will work. Ext.get will return Element not a component.