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

后端 未结 9 962
轮回少年
轮回少年 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:56

    The first thing (setting style.display = "none") is right. In place of

    ...then setting style.display = "block"

    you should just call .set_visible JS method of the ajax TabContainer when "...user clicks a button", like:

    $find('<%= Tabs.ClientID %>').set_visible(true);
    

提交回复
热议问题