[Dojo-interest] Changing label of the tab
Fredrik Johansson
fredrik at mumme.se
Sat Jan 20 03:19:26 MST 2007
tisdag 16 januari 2007 08:21 skrev Saurabh Agrawal:
> Hi
>
> I want to change the label of the tabcontainer and change the
> contents of the tab inside it depending upon parameters pass to a
> function can anyone help me out with it...
>
> regards
> Saurabh
Hi,
You can find a example of changing the label text of a Tab here:
http://manual.dojotoolkit.org/WikiHome/ContentPaneExamples
As for changing the Content inside the Tab that should be fairly easy to do
with
var tab = dojo.widget.byId("theTabYOuWantToChange");
tab.setContent(htmlstring); // or tab.setUrl("anotherpage.php");
/ Fredrik
More information about the Dojo-interest
mailing list