View source: R/standard_layout.R
standard_layout | R Documentation |
Create a standard UI layout with output on the right and an encoding panel on
the left. This is the layout used by the teal
modules.
standard_layout(
output,
encoding = NULL,
forms = NULL,
pre_output = NULL,
post_output = NULL
)
output |
( |
encoding |
( |
forms |
( |
pre_output |
( |
post_output |
( |
an object of class shiny.tag
with the UI code.
library(shiny)
standard_layout(
output = white_small_well(tags$h3("Tests")),
encoding = tags$div(
tags$label("Encodings", class = "text-primary"),
panel_item(
"Tests",
optionalSelectInput(
"tests",
"Tests:",
choices = c(
"Shapiro-Wilk",
"Kolmogorov-Smirnov (one-sample)"
),
selected = "Shapiro-Wilk"
)
)
),
forms = tagList(
verbatim_popup_ui("warning", "Show Warnings"),
verbatim_popup_ui("rcode", "Show R code")
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.