Description Usage Arguments Author(s) Examples
A box with a ribbon
1 2 |
... |
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". |
David Granjon, dgranjon@ymail.com
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) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.