Type: | Package |
Title: | Multi Action Button for 'Shiny' Applications |
Version: | 1.0.0 |
Description: | Provides a multi action button for usage in 'shiny' applications. |
License: | GPL-3 |
URL: | https://github.com/stla/multiActionButton |
BugReports: | https://github.com/stla/multiActionButton/issues |
Imports: | htmltools, shiny |
Encoding: | UTF-8 |
RoxygenNote: | 7.2.0 |
NeedsCompilation: | no |
Packaged: | 2022-06-20 11:25:35 UTC; SDL96354 |
Author: | Stéphane Laurent [aut, cre], Sergey Pimenov [cph] (Metro 4 library) |
Maintainer: | Stéphane Laurent <laurent_step@outlook.fr> |
Repository: | CRAN |
Date/Publication: | 2022-06-22 07:20:05 UTC |
Metro UI colors
Description
Available metro UI colors.
Usage
mui.bgcolors()
mui.fgcolors()
Value
A character vector, the names of the available background and foreground colors.
Metro UI icons
Description
Available metro UI icons.
Usage
mui.icons()
Value
A character vector of length 700, the names of the available icons.
Examples
matrix(mui.icons(), ncol = 4L, byrow = TRUE)
Multi action button
Description
Multi action button for usage in a Shiny UI.
Usage
multiActionButton(
rotate = TRUE,
bg = NULL,
fg = NULL,
icon = NULL,
direction = "right",
subButtons
)
Arguments
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 |
Value
A shiny.tag
object to be included in a Shiny UI.
Examples
if(interactive()){
shinyMUIdemo()
}
Shiny app: metro UI background colors
Description
Shiny app showing all available metro UI background colors.
Usage
shinyMUIcolors()
Value
No returned value, the function just launches a Shiny app.
Shiny app: multi action button
Description
Shiny app demonstrating the multi action button.
Usage
shinyMUIdemo()
Value
No returned value, this function just runs a Shiny app.
Shiny app: metro UI icons
Description
Launch a shiny app displaying all available metro UI icons.
Usage
shinyMUIicons()
Value
No returned value, the function just launches a Shiny app.
Sub-button
Description
Creates a sub-button for usage in
multiActionButton
.
Usage
subButton(
id,
bg = NULL,
fg = NULL,
icon = NULL,
tooltip = NULL,
onclick = NULL
)
Arguments
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 |
Value
A shiny.tag
object for usage in
multiActionButton
.