I am using the BorderLayout and I want to know if it is possible to start a region in the borderlayout collapsed. I then want the region to open upon clicking on an href in another region.

Thanks in advance for the help,
J

Herm

11 Dec 2006, 9:26 PM

Yep. If you go to Docs > Examples and Demos > Layouts - Complex Layout and click on the Center Panel tab, you will see it gives you an href to make the West region display.

Peter

jack.slocum

12 Dec 2006, 6:45 AM

To start it in standard collapsed mode, add the config collapsed:true. You can collapse and expand with code using the expand()/collapse() methods on the region.

j555

12 Dec 2006, 9:35 AM

Thanks for the replies. How would I execute and expand()/collapse() function on a region that is in an innerLayout within a layout. I unfortunately need 2 many regions so I need an innerlayout. When I try to execute a function on the innerlayout I get a javascript error which says 'innerLayout' is undefined.

Thanks

brian.moeskau

12 Dec 2006, 10:31 AM

You should be able to call the same methods on any region, regardless of nesting, as long as the object reference and scope are valid. Please post the code you're using so we can take a look at it.

j555

12 Dec 2006, 10:57 AM

Here is the javascript code that I have. I get the error when I try to call the function Example.toggleCenter(). I am sure it is something I am overlooking as I am far from a javascript expert. I welcome any changes or suggestions anyone has. Here is the code: