Package 'multiActionButton'

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

Help Index


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, "top", "right", "bottom", or "left"

subButtons

a list of buttons created with subButton

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 onclick attribute of the button

Value

A shiny.tag object for usage in multiActionButton.