Skip to content
Discussion options

You must be logged in to vote

Hi @kyle-power, thanks for reaching out! I hope these examples help. LMK if you have additional questions.

Using Nav without shiny.router

It might be slightly obscure, but you can use the Nav component without shiny.router.

library(glue)
library(shiny)
library(shiny.fluent)

handleLinkClick <- function(inputId) {
  JS(glue("(e, link) => Shiny.setInputValue('{inputId}', link.key)"))
}

shinyApp(
  ui = withReact(
    Nav(
      groups = list(
        list(links = list(
          list(name = 'Home', key = 'home', icon = 'Home'),
          list(name = 'Appsilon', key = 'appsilon', icon = 'Accounts')
        ))
      ),
      onLinkClick = handleLinkClick("link")
    )
  ),
  server = function(

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@marekrogala
Comment options

Comment options

You must be logged in to vote
4 replies
@marekrogala
Comment options

@kyle-power
Comment options

@kyle-power
Comment options

@kamilzyla
Comment options

Answer selected by kyle-power
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants