Page 1 of 1

How can I change center pane title dynamically ?

PostPosted: Wed Aug 08, 2007 3:59 pm
by hypnotic
After a pane is inizialized:

var centerTitle='myTitle';

var paneCenter = new DHTMLSuite.paneSplitterPaneModel({ position : "center", id:"centerPane",scrollbars:false,closable:true} );
paneCenter.addContent( new DHTMLSuite.paneSplitterContentModel( { id:"centerContent",htmlElementId:'centerContent',title:centerTitle,tabTitle:'' ,closable:false} ) );
paneModel.addPane(paneCenter);

is there a way to change title from 'myTitle' to something else ?

Thanks,
HyP

PostPosted: Wed Aug 08, 2007 5:04 pm
by hypnotic
Found by myself:

paneSplitter.setContentTitle('centerContent','newTitle');

Cheers,
HyP