dq_space: Create an empty div for spacing

Description Usage Arguments Value Author(s) Examples

View source: R/dq_space.R

Description

Creates an empty div with the desired height clearing the space on the desired sites.

Usage

1
dq_space(height = 30, clear = "both")

Arguments

height

Height of the space, can be any valid CSS unit, validation will be done with validateCssUnit.

clear

Optional, can be one of 'both', 'left', 'right' and 'none' to specify which elements should be cleared, will be 'both' if given value is omitted or none of these.

Value

shiny div for spacing

Author(s)

richard.kunze

Examples

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

library(shiny)
shinyApp(
  ui = fluidPage(
    fluidRow(
      dq_box(title = "I need space!!", dq_space(200)),
      dq_box(
      title = "I need more space", collapsible = TRUE, collapsed = TRUE,
            "...but I'm collapsible!", dq_space("50vh")
            )
    )),
  server = function(input, output) {
  }
)

}

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