Learn R Programming

gentelellaShiny (version 0.1.0)

box: A box to put dashboard elements in

Description

A box to put dashboard elements in

Usage

box(..., width = 4, height = NULL, title = "Box title",
  subtitle = NULL, collapsible = TRUE, closable = FALSE,
  dropdownMenu = NULL)

Arguments

...

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.

Examples

Run this code
# NOT RUN {
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) {}
 )
}

# }

Run the code above in your browser using DataLab