PDA

View Full Version : method that calls after each action on component



sudhanshubest
1 Jul 2012, 9:54 AM
Hi,

I just wanted to knwo is tehre any method in component that calls after any action performed on component or ui element.

Earlier i was using webdnpro java ,ther they exposed method domodifyview that calls after any action ahppen on view.I am looking such kind of functionality.

My task is to put unique dummy class name in each component after render so that selenium can identify during recording.
So i implemented after render method that works on first render but in case of combobox when i open again all unique classes that i put getting lost.

Kindly guide me in achieving my requirement

Thanks,
Sudhanshu

el_chief
1 Jul 2012, 1:15 PM
Ext.util.Observable.capture(someComponentReference, function(){

console.log('i am run after any event on the component');

});

sudhanshubest
2 Jul 2012, 2:05 AM
Hi ,

Problem with this approach is this will fire before that event trigger and i want my function to be called after item event fires.

Thanks,
Sudhanshu