Simple - Dynamic pane adding
Posted:
Wed Apr 04, 2007 8:41 am
by frodik
Hello !
I have a simple question and I hope someone will give me simple answer, because I am quite new to DHTMLGoodies suite for applications. I use the demo available on this web.
I want to click on the item in the menu and to add new pane, let's say West.
I've tried it all day, but can't figure it out... Would someone please help me? It should be few lines of code I guess....
Posted:
Thu Apr 05, 2007 9:06 am
by Calcifer
you can ceate west pane initially... and hide like this:
[code] paneSplitter.hidePane('west'); [code]
and load content like above and show pane:
[code] paneSplitter.showPane('west'); [code]
or
you can create west pane on run time ( i did not try but i hope run )
[code]
var paneWest = new DHTMLSuite.paneSplitterPaneModel( { position : "west", id:"westPane",size:225,minSize:200,maxSize:250,scrollbars:true } );
paneWest.addContent( new DHTMLSuite.paneSplitterContentModel( { id:"westContent",htmlElementId:'westContent',title:'Student Information',tabTitle:'',closable:false } ) );
[code]