inst/shinyapps/icons/ui.R

shinyUI(
  fluidPage(
    tags$fieldset(
      tags$legend(
        h1(style = "display: inline-block;", "Metro UI icons"),
        helpText(
          style = "display: inline-block;",
          "(hover the icons to see their name)"
        )
      ),
      do.call(tagList, apply(iconsChunks, 1L, function(chunk){
        div(multiActionButton(
          rotate = TRUE, bg = "teal", fg = "white", icon = "plus",
          direction = "right",
          subButtons = lapply(chunk, function(icon){
            subButton(
              icon, bg = "darkRed", icon = icon, tooltip = icon
            )
          })
        ))
      }))
    ),
    tags$script(HTML("$('.multi-action>button').addClass('active')"))
  )
)

Try the multiActionButton package in your browser

Any scripts or data that you put into this service are public.

multiActionButton documentation built on June 22, 2022, 9:07 a.m.