ribbonBox: A box with a ribbon

Description Usage Arguments Author(s) Examples

View source: R/boxes.R

Description

A box with a ribbon

Usage

1
2
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".

Author(s)

David Granjon, dgranjon@ymail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
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) {}
 )
}

MarkEdmondson1234/gentelellaShiny documentation built on Dec. 31, 2019, 1:24 a.m.