Learn R Programming

gentelellaShiny (version 0.1.0)

valueBox: A value box

Description

A value box

Usage

valueBox(value, title = NULL, description = NULL, icon = NULL,
  width = 3)

Arguments

value

value

title

value box title

description

description if any

icon

value box icon if any

width

value box width. 3 by default

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(gentelellaShiny)
 shinyApp(
  ui = gentelellaPageCustom(
   gentelellaBody(
    valueBox(
     value = 179,
     title = "New Sign ups",
     description = "Lorem ipsum psdea itgum rixt",
     icon = icon("caret-square-o-right")
    ),
    valueBox(
     value = 345,
     title = "New Customers",
     description = "Lorem ipsum psdea itgum rixt",
     icon = icon("comments-o")
    )
   )
  ),
  server = function(input, output, session) {}
 )
}

# }

Run the code above in your browser using DataLab