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

后端 未结 9 815
轮回少年
轮回少年 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条回答
  •  离开以前
    2021-01-05 02:43

    There is solution for this. If you want to show TabContainer calll:

    dijit.byId("tabContainer").domNode.style.display = 'block';
    dijit.byId("tabContainer").resize();
    

    and use 'none' if you want to hide TabContainer.

    This works for me, but that is truth, it is not obvious :)

提交回复
热议问题