Learn R Programming

resizableSplitLayout (version 0.1.1)

resizableSplitUI: resizableSplitUI

Description

resizableSplitUI

Usage

resizableSplitUI(
  id,
  sidebarpane,
  maincontenttop,
  maincontentbottom,
  sidebar.percentage = 15,
  maincontenttop.percentage = 85,
  return.only.taglist = FALSE
)

Value

A Shiny UI object. If return.only.taglist = TRUE, returns a shiny.tag.list object containing the resizable split layout elements. If return.only.taglist = FALSE (default), returns a Shiny bootstrap page (from shiny::bootstrapPage) containing the resizable layout.

Arguments

id

Module identifier

sidebarpane

Content for page sidebar

maincontenttop

Content for page main top pane

maincontentbottom

Content for page main bottom pane

sidebar.percentage

Width for sidebar as percentage

maincontenttop.percentage

Height for page main top pane as percentage

return.only.taglist

logical to return taglist instead of a bootstrapPage

Examples

Run this code
if (interactive()) {

  ui <- resizableSplitUI("splitModule",
    sidebarpane = shiny::div("This is the sidebar"),
    maincontenttop = shiny::div("This is the maincontenttop"),
    maincontentbottom = shiny::div("This is the maincontentbottom")
  )

  server <- function(input, output, session) { }

  shinyApp(ui, server)
}

Run the code above in your browser using DataLab