Learn R Programming

dqshiny (version 0.0.3)

dq_space: Create an empty div for spacing

Description

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

Usage

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

Examples

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

}
# }

Run the code above in your browser using DataLab