繁体   English   中英

在 javascript tabContainer 中重命名选项卡

[英]Renaming a tab in javascript tabContainer

有谁知道如何使用 dijit.layout.TabContainer 更新选定选项卡的标题? 我可以使用 this.tc.getChildren()[tabIndex].title 检索当前标题,但尝试将其设置为 this.tc.getChildren()[tabIndex].title = newTabTitle 似乎不起作用。

玩了一会后,我验证了 this.tc.getChildren()[tabIndex].set("title",newTabTitle); 诀窍...我希望这有助于将来遇到同样问题的其他人!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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