View Full Version : How can i hide a tab in the layout center panel

9 Jan 2007, 11:56 AM
I have trying hide a tab with this code:

hideFrames : function(region, panel) {
var panelExists = layout.getRegion(region).getPanel(panel);
panelExists.hidePanel(region, panel);

But benerate the exception: Object not suport property or method.... How can i do it????

10 Jan 2007, 12:43 AM
Have you tried the first thing most programmers would do, and stepped through it in a debugger, checking that the variables contain the things you think they should before whinging here?

10 Jan 2007, 6:39 AM
well.. before i do this, and i see no properties or functions to hide the panel...

10 Jan 2007, 6:49 AM
It's cuz i create iframes to put in panels, and i not want lost the state of iframe when is reopened, and unique method existent is "REMOVE", but when i revome the panel he remove the iframe too.

10 Jan 2007, 7:07 AM
Sorry, I can't understand that sentence.