Skip to content

Example of Split Button with menuProps #157

Answered by jakubsob
Kvit asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Kvit,

please take a look at the following example:

library(shiny)
library(shiny.fluent)

menuProps <- list(
  items = list(
    list(
      key = "emailMessage",
      text = "Email message",
      onClick = JS("() => alert('Email message clicked')"),
      iconProps = list(
        iconName = "Mail"
      )
    ),
    list(
      key = "calendarEvent",
      text = "Calendar event",
      onClick = JS("() => alert('Calendar event clicked')"),
      iconProps = list(
        iconName = "Calendar"
      )
    )
  )
)

shinyApp(
  ui = fluentPage(
    Stack(
      horizontal = TRUE,
      wrap = TRUE,
      tokens = list(
        childrenGap = 40
      ),
      DefaultButton.shinyInput(…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jakubsob
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants