PDA

View Full Version : Extjs onscroll event



levansuper
24 Jun 2010, 5:40 AM
hello everyone.

I wonder if Extjs supports onscroll event. I have an Ext.Window and need to listen to it's scroll event. can you help me with that?

thank you

mankz
24 Jun 2010, 5:48 AM
yourWindow.body.on('scroll', function() { // do something });

Animal
24 Jun 2010, 6:03 AM
http://www.sencha.com/deploy/dev/docs/?class=Ext.Element&member=scroll

Hmm.... A doc API bug there.

That will find the scroll method, not the event. Go down a bit further and you'll find a list of the DOM events.