render_dq_box_group: Directly render a set of dq_boxes as a group

Description Usage Arguments Value Author(s) Examples

View source: R/box_group.R

Description

Directly render a set of dq_boxes into an uiOutput element. All given dq_boxes will be prepared automatically, meaning that they become 'collapsible' and 'open_callback'ed.

Usage

1

Arguments

...

a set of dq_boxes

open

optional integer or character of length one, specifying the initially opened box

Value

fluidRow containing the grouped dq_boxes

Author(s)

richard.kunze

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Only run examples in interactive R sessions
if (interactive()) {

library(shiny)
shinyApp(
  ui = fluidPage(
    fluidRow(column(6, uiOutput("myGroup")))
  ),
  server = function(input, output) {
    output$myGroup <- render_dq_box_group(
      dq_box("Random Input1", dq_space(), "End of Content",
        title = "TestBox1", width = 12),
      dq_box("Random Input2", dq_space(), "End of Content",
        title = "TestBox2", width = 9),
      dq_box("Random Input3", dq_space(), "End of Content",
        title = "TestBox3", width = 12),
      open = 3L)
  }
)

}

daqana/dqshiny documentation built on Sept. 1, 2020, 4:31 p.m.