hardy.lee
25 Sep 2008, 7:09 PM
Hello all, i got a problem when i get the SplitBar Object after the region was collapsed.
The attached Screen 1&2 are the Extjs example "layout/column".
On Screen 1 when the region "west" is appear, i can get the SplitBar by the following code:
var west_SplitBar = viewport.getLayout().west.getSplitBar();
Actally i want to hide/disable the Split function and collapse function after a user trigger some event on viewport. So i hide the SplitBar by this code:
viewport.getLayout().west.getSplitBar().el.hide();
It's work on the region "west" is appear, but when the region is collapsed, the code is not work to get the SplitBar object on the left handside(Please see the Screen 2, that is the object i want to get)
In fact i want to hide/show the SplitBar dynamically, it is possible? or it have a straightforward way to do it?
Thanks for the help.
Hardy
Screen 1
9642
Screen 2
9644
The attached Screen 1&2 are the Extjs example "layout/column".
On Screen 1 when the region "west" is appear, i can get the SplitBar by the following code:
var west_SplitBar = viewport.getLayout().west.getSplitBar();
Actally i want to hide/disable the Split function and collapse function after a user trigger some event on viewport. So i hide the SplitBar by this code:
viewport.getLayout().west.getSplitBar().el.hide();
It's work on the region "west" is appear, but when the region is collapsed, the code is not work to get the SplitBar object on the left handside(Please see the Screen 2, that is the object i want to get)
In fact i want to hide/show the SplitBar dynamically, it is possible? or it have a straightforward way to do it?
Thanks for the help.
Hardy
Screen 1
9642
Screen 2
9644