Navbar menu input
To capture the currently selected tab to subsequently perform actions on the server side, updating the selected tab based on a button click.
- Add an id attribute to
tabler_navbar_menu()
.
tabler_navbar_menu <- function(..., id = NULL) {
tags$ul(
id = id,
class = "nav nav-pills navbar-nav",
...
)
}
- Create the JS
navbarMenuBinding
looking for thenavbar-nav
class in thefind
method.