render_value_box: Create a value box output.

View source: R/value_box.R

render_value_boxR Documentation

Create a value box output.

Description

Server-side function for dynamic valueBox.

Usage

render_value_box(expr, env = parent.frame(), quoted = FALSE)

renderValueBox(expr, env = parent.frame(), quoted = FALSE)

renderInfoBox(expr, env = parent.frame(), quoted = FALSE)

Arguments

expr

ValueBox.

env

The environment in which to evaluate expr.

quoted

Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.

Value

A dynamic valueBox that can be assigned to output.

Functions

  • renderValueBox(): Create a value box output (alias for render_value_box)

  • renderInfoBox(): Create a value box output (alias for render_value_box)

Examples

## Not run: 
valueBoxOutput("value_box")

output$value_box <- renderValueBox({
  valueBox(
    value = 33.45,
    subtitle = "Simple valuebox",
    icon = icon("bar chart"),
    color = "purple",
    width = 5)
})

## End(Not run)

Appsilon/semantic.dashboard documentation built on April 21, 2024, 2:42 p.m.