Description Usage Arguments Author(s) Examples
A box to put dashboard elements in
1 2 3 |
... |
elements to put in the box |
width |
Box width |
height |
Box height |
title |
Box title |
subtitle |
Box subtitle |
collapsible |
Whether the box can be collapsed. TRUE by default. |
closable |
Whether the box can be closed. FALSE by default. |
dropdownMenu |
Dropdown menu: list of dropdown links. See example below. |
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 21 22 | if (interactive()) {
library(shiny)
library(gentelellaShiny)
shinyApp(
ui = gentelellaPageCustom(
gentelellaBody(
box(
"test",
width = 4,
height = NULL,
title = "Box title",
closable = TRUE,
dropdownMenu = list(
a(href = "http://www.google.com", "Test", target = "_blank"),
a(href = "http://www.google.com", "Test", target = "_blank")
)
)
)
),
server = function(input, output, session) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.