R shinydashboard - show/hide multiple menuItems based on user input
The idea is to have a user input (access code), based on which different menuItems can be accessed. So basically we have a custom version of app available based on user's requirement. A working example for 3 menuItems is as follow: library(shiny) library(shinydashboard) library(shinyjs) ui <- dashboardPage( dashboardHeader(title = "SHOW/HIDE MULTIPLE MENU ITEMS"), dashboardSidebar( useShinyjs(), sidebarMenu( id = "tabs", hidden( menuItem("MENU ITEM 1", tabName = "mi1"), menuItem("MENU ITEM 2", tabName = "mi2"), menuItem("MENU ITEM 3", tabName = "mi3") ), textInput(inputId = "accessToken",