Skip to contents

Activates the bs_nav_link() carrying selected as its value inside the bs_nav() registered under id, and reports the change back as input$id.

Usage

update_bs_nav(id, selected = NULL, session = shiny::getDefaultReactiveDomain())

Arguments

id

Nav id, as passed to bs_nav().

selected

value of the link to activate.

session

The Shiny session.

Value

Nothing, called for its side effect.

See also

Examples

if (interactive()) update_bs_nav("menu", selected = "profile")