dgersh
13 Jun 2007, 11:21 AM
relatively new to YUI but have read lots of the documentation, beginner tutorial, all of the Layout Tutorials and examples.
I can't for the life of me get regionexpanded to fire.
I take the standard way of setting up panels, add them to my layout, do my endUpdate.
Then I try to setup my even handler but it either won't setup or I'm doing it wrong.
First I was trying to get an actual function to run, I've now simplified it for testing.
var east = mainLayout.getRegion('east');
east.on('regionexpanded', function() {
alert("test");
});
I know that east is found and available because calling east.hide(); works
any help would be appreciated. Thanks.
I can't for the life of me get regionexpanded to fire.
I take the standard way of setting up panels, add them to my layout, do my endUpdate.
Then I try to setup my even handler but it either won't setup or I'm doing it wrong.
First I was trying to get an actual function to run, I've now simplified it for testing.
var east = mainLayout.getRegion('east');
east.on('regionexpanded', function() {
alert("test");
});
I know that east is found and available because calling east.hide(); works
any help would be appreciated. Thanks.