Title: | Multi Action Button for 'Shiny' Applications |
---|---|
Description: | Provides a multi action button for usage in 'shiny' applications. |
Authors: | Stéphane Laurent [aut, cre], Sergey Pimenov [cph] (Metro 4 library) |
Maintainer: | Stéphane Laurent <[email protected]> |
License: | GPL-3 |
Version: | 1.0.0 |
Built: | 2024-11-09 06:08:42 UTC |
Source: | https://github.com/stla/multiactionbutton |
Available metro UI colors.
mui.bgcolors() mui.fgcolors()
mui.bgcolors() mui.fgcolors()
A character vector, the names of the available background and foreground colors.
Available metro UI icons.
mui.icons()
mui.icons()
A character vector of length 700, the names of the available icons.
matrix(mui.icons(), ncol = 4L, byrow = TRUE)
matrix(mui.icons(), ncol = 4L, byrow = TRUE)
Multi action button for usage in a Shiny UI.
multiActionButton( rotate = TRUE, bg = NULL, fg = NULL, icon = NULL, direction = "right", subButtons )
multiActionButton( rotate = TRUE, bg = NULL, fg = NULL, icon = NULL, direction = "right", subButtons )
rotate |
logical, whether to rotate the icon upon clicking the main button |
bg |
background color of the button |
fg |
color of the icon |
icon |
icon name |
direction |
the opening direction, |
subButtons |
a list of buttons created with |
A shiny.tag
object to be included in a Shiny UI.
if(interactive()){ shinyMUIdemo() }
if(interactive()){ shinyMUIdemo() }
Shiny app showing all available metro UI background colors.
shinyMUIcolors()
shinyMUIcolors()
No returned value, the function just launches a Shiny app.
Shiny app demonstrating the multi action button.
shinyMUIdemo()
shinyMUIdemo()
No returned value, this function just runs a Shiny app.
Launch a shiny app displaying all available metro UI icons.
shinyMUIicons()
shinyMUIicons()
No returned value, the function just launches a Shiny app.
Creates a sub-button for usage in
multiActionButton
.
subButton( id, bg = NULL, fg = NULL, icon = NULL, tooltip = NULL, onclick = NULL )
subButton( id, bg = NULL, fg = NULL, icon = NULL, tooltip = NULL, onclick = NULL )
id |
button id |
bg |
background color of the button |
fg |
color of the icon |
icon |
icon name |
tooltip |
character string to be shown as tooltip |
onclick |
the |
A shiny.tag
object for usage in
multiActionButton
.