powered by
Create a menu item corresponding to a tab.
menu_item(text, ..., icon = NULL, tabName = NULL, href = NULL, newtab = TRUE)menuItem(text, ..., icon = NULL, tabName = NULL, href = NULL, newtab = TRUE)menuSubItem(text, ..., icon = NULL, tabName = NULL, href = NULL, newtab = TRUE)
menuItem(text, ..., icon = NULL, tabName = NULL, href = NULL, newtab = TRUE)
menuSubItem(text, ..., icon = NULL, tabName = NULL, href = NULL, newtab = TRUE)
Text to show for the menu item.
This may consist of menuSubItems.
Icon of the menu item. (Optional)
Id of the tab. Not compatible with href.
A link address. Not compatible with tabName.
If href is supplied, should the link open in a new browser tab?
A menu item that can be passed sidebarMenu
sidebarMenu
menuItem: Create a menu item (alias for manu_item for compatibility with shinydashboard)
menuItem
manu_item
shinydashboard
menuSubItem: Create a menu item (alias for manu_item for compatibility with shinydashboard)
menuSubItem
# NOT RUN { menuItem(tabName = "plot_tab", text = "My plot", icon = icon("home")) # }
Run the code above in your browser using DataLab