简体   繁体   中英

Renaming a tab in javascript tabContainer

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.

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM