nav-items | R Documentation |
Create nav item(s) for use inside nav containers (e.g., navset_tab()
,
navset_bar()
, etc).
nav_panel(title, ..., value = title, icon = NULL)
nav_panel_hidden(value, ..., icon = NULL)
nav_menu(title, ..., value = title, icon = NULL, align = c("left", "right"))
nav_item(...)
nav_spacer()
title |
A title to display. Can be a character string or UI elements (i.e., htmltools::tags). |
... |
Depends on the function:
|
value |
A character string to assign to the nav item. This value may be
supplied to the relevant container's |
icon |
Optional icon to appear next to the nav item's |
align |
horizontal alignment of the dropdown menu relative to dropdown toggle. |
A nav item that may be passed to a nav container (e.g. navset_tab()
).
nav_panel()
: Content to display when the given item is selected.
nav_panel_hidden()
: Create nav content for use inside navset_hidden()
(for
creating custom navigation controls via navs_select()
),
nav_menu()
: Create a menu of nav items.
nav_item()
: Place arbitrary content in the navigation panel (e.g., search
forms, links to external content, etc.)
nav_spacer()
: Adding spacing between nav items.
navset create the navigation container holding the nav panels.
nav_menu()
, nav_item()
, nav_spacer()
create menus, items, or
space in the navset control area.
nav_insert()
, nav_remove()
programmatically add or remove nav
panels.
nav_select()
, nav_show()
, nav_hide()
change the state of a
nav_panel()
in a navset.
Other Panel container functions:
nav_select()
,
navset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.