How do I dynamically show and hide an entire TabContainer using DOJO?

后端 未结 9 927
轮回少年
轮回少年 2021-01-05 02:06

DOJO seems to have some quirks here. I specifically need to have the TabContainer hidden when the page loads, but then become visible after the user clicks a button. The fir

9条回答
  •  旧时难觅i
    2021-01-05 02:51

    Well, I did not solve this problem, but I came up with a workaround...Creating the TabContainer on the click event, instead of creating it hidden on page load and then showing it on the click event.

    HTML:

    JS:

    var tabContainer = new dijit.layout.TabContainer({id:"tabContainer", style:"width:500px;height:200px;"}, dojo.byId('tabContainer'));  
    //add tabs
    tabContainer.startup();
    

提交回复
热议问题