簡體   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