multi_box: multi_box

Description Usage Arguments Details Value Examples

View source: R/tile_maker.R

Description

Create a tile that contains more than one value, icon and text

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
multi_box(
  icons = NULL,
  txt = NULL,
  values = NULL,
  title = NULL,
  size = "md",
  color = "info",
  link = NULL,
  number_zoom = 150,
  hover = NULL,
  ...
)

Arguments

icons

vector of Icons to display, Default: NULL

txt

Optional subtext that should appear under the value

values

vector of values to display, Default: NULL

title

Top title, Default: NULL

size

Optional size specified in the bootstrap css classes: "xs","sm","md","lg")

color

Optional bootstrap css element that governs the color. https://v4-alpha.getbootstrap.com/utilities/colors/ Choose from: "muted", "primary", "success", "info", "warning", "danger", Default: 'info'

link

Optional hyperlink to redirect to after a user click, Default: NULL

number_zoom

Optional magnification % for number vs normal text, Default: 150

hover

Optional tooltip, or text that will show up when a user rests their mouse over the tile, Default: NULL

...

add any other html code here

Details

Allows for each button to contain several icon-number-text descriptions.

Value

an HTML object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(dplyr)
multi_box(
  values = c(21, 45), title = "Important <br>button",
  number_zoom = 300, icons = c("apple", "calendar"), color = "warning",
  txt = c("times", "reports")
) %>%
  finisher(divs = .)
## Not run: 
if (interactive()) {
  # EXAMPLE1
}

## End(Not run)

mexindian/TileMaker documentation built on Feb. 1, 2022, 2:09 p.m.