R shinydashboard dynamic menu selection

前端 未结 2 551
逝去的感伤
逝去的感伤 2021-01-01 01:16

I have created dynamic sibebar menus in R shinydashboard. Even though I use selected = TRUE, no menuItem associated with a menu gets selected at startup in this

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-01 01:24

    Why not using an observer which is called only once at app init

    observe({ # called only once at app init
      updateTabItems(session, "tabs", "m2")
    })
    

提交回复
热议问题