Renaming a tab in javascript tabContainer

73 Views Asked by At

Does anyone know how to update the title of a selected tab using the dijit.layout.TabContainer?

I am able to retrieve the current title using this.tc.getChildren()[tabIndex].title, but trying to set it as this.tc.getChildren()[tabIndex].title = newTabTitle does not appear to work.

1

There are 1 best solutions below

0
bobness On

After playing around a bit, I verified that

this.tc.getChildren()[tabIndex].set("title",newTabTitle);

does the trick!

I hope this helps out anyone else having this same issue in the future!