box: A box to put dashboard elements in

Description Usage Arguments Author(s) Examples

View source: R/boxes.R

Description

A box to put dashboard elements in

Usage

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

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
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) {}
 )
}

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