menu_item | R Documentation |
Create a menu item corresponding to a tab.
menu_item(
text,
...,
icon = NULL,
tabName = NULL,
href = NULL,
newtab = TRUE,
selected = FALSE
)
menuItem(
text,
...,
icon = NULL,
tabName = NULL,
href = NULL,
newtab = TRUE,
selected = FALSE
)
menuSubItem(
text,
...,
icon = NULL,
tabName = NULL,
href = NULL,
newtab = TRUE,
selected = FALSE
)
text |
Text to show for the menu item. |
... |
This may consist of menuSubItems. |
icon |
Icon of the menu item. (Optional) |
tabName |
Id of the tab. Not compatible with href. |
href |
A link address. Not compatible with tabName. |
newtab |
If href is supplied, should the link open in a new browser tab? |
selected |
If TRUE, this menuItem will start selected. |
A menu item that can be passed sidebarMenu
menuItem()
: Create a menu item (alias for menu_item
for compatibility with
shinydashboard
)
menuSubItem()
: Create a menu item (alias for menu_item
for compatibility with
shinydashboard
)
menuItem(tabName = "plot_tab", text = "My plot", icon = icon("home"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.