Advertisement

How can I change center pane title dynamically ?

Moderators: Calcifer, slothy

How can I change center pane title dynamically ?

Postby hypnotic » Wed Aug 08, 2007 3:59 pm

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
hypnotic
 
Posts: 2
Joined: Wed Aug 08, 2007 3:38 pm

Postby hypnotic » Wed Aug 08, 2007 5:04 pm

Found by myself:

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

Cheers,
HyP
hypnotic
 
Posts: 2
Joined: Wed Aug 08, 2007 3:38 pm


Return to General questions

Who is online

Users browsing this forum: Google [Bot] and 11 guests

cron