Externally link to specific tabPanel in Shiny App

后端 未结 2 721
旧时难觅i
旧时难觅i 2021-01-03 10:44

It\'s possible to use anchor links in flat Shiny apps relatively easily - https://stackoverflow.com/a/28605517/1659890.

However, is it possible for an external link

2条回答
  •  梦毁少年i
    2021-01-03 11:39

    You could add a search query parameter to the URL (eg. href='www.myapp.com?tab=tab2), and in the app that is being linked you would have to add a bit of logic that changes to a specified tab on initialization if the search string is present (eg. look at session$clientData$url_search and if it exists and there's a tab variable, then use updateTabsetPanel() to go to that tab)

提交回复
热议问题