PDA

View Full Version : region event handler for onRegionCollapsed and onRegionResiz



n01champion
17 Nov 2006, 10:29 AM
Is there an event listener for when a region in the layout gets resized or collapsed and what would the code look like.. I tried looking throught the source and saw... onRegionCollapsed and onRegionResized but dont know exactly how they work...

Thanks

Animal
17 Nov 2006, 10:51 AM
http://www.yui-ext.com/docs/

Specifically: http://www.yui-ext.com/docs/output/YAHOO.ext.LayoutRegion.html#collapsed

And LayoutRegion extends Observable, so check the docs on that for how to subscribe to its events.