Learn R Programming

gentelellaShiny (version 0.1.0)

ribbonBox: A box with a ribbon

Description

A box with a ribbon

Usage

ribbonBox(..., width = 3, height = 390, ribbon_text = NULL,
  title = NULL, ribbon_color = NULL)

Arguments

...

elements to put in the box

width

Box width

height

Box height

ribbon_text

Ribbon text

title

Box title

ribbon_color

Ribbon background color: "red", "orange", "blue", "purple", "green".

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(gentelellaShiny)
 shinyApp(
  ui = gentelellaPageCustom(
   gentelellaBody(
    ribbonBox(
      ribbon_text = "30 % Off",
      title = "Ribbon Box",
      "If you've decided to go in development mode and
      tweak all of this a bit, there are few things
      you should do.",
      pieChart(id = "chart1", value = 10),
      pieChart(id = "chart2", value = 20)
     )
    )
  ),
  server = function(input, output, session) {}
 )
}

# }

Run the code above in your browser using DataLab