From 5069e0a19f17559d466ad213616207dbf3a2ebbd Mon Sep 17 00:00:00 2001 From: DivadNojnarg Date: Sun, 23 Jun 2024 07:59:40 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20RinteRfa?= =?UTF-8?q?ce/shiny386@ecfc4f899e4d5bebeaadcdcef1a9699f99422059=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 119 ++--- LICENSE-text.html | 109 +--- LICENSE.html | 109 +--- authors.html | 141 ++--- index.html | 126 ++--- news/index.html | 122 +---- pkgdown.css | 87 ++-- pkgdown.js | 4 +- pkgdown.yml | 8 +- reference/Rplot001.png | Bin 0 -> 1011 bytes reference/badge_386.html | 189 +++---- reference/button_386.html | 231 +++----- reference/card.html | 247 ++++----- reference/checkbox_group_input_386.html | 254 +++------ reference/checkbox_input_386.html | 194 +++---- reference/create_checkbox_tag.html | 192 +++---- reference/dropdown.html | 301 +++++------ reference/index.html | 280 +++------- reference/jumbotron_386.html | 189 +++---- reference/list_group_386.html | 295 ++++------- reference/list_group_item_386.html | 213 +++----- reference/modal.html | 357 ++++++------- reference/navbar.html | 491 ++++++++---------- reference/page_386.html | 146 ++---- reference/pipe.html | 117 +---- reference/progress_386.html | 159 ++---- reference/radio_input_386.html | 288 ++++------ reference/select_input_386.html | 267 ++++------ reference/shiny386.html | 123 ++--- reference/show_toast_386.html | 238 +++------ reference/tab_panel_386.html | 159 ++---- reference/tabset_panel_386.html | 236 +++------ reference/text_area_input_386.html | 262 ++++------ reference/text_input_386.html | 198 +++---- reference/toast_386.html | 181 ++----- reference/toggle_input_386.html | 210 +++----- .../update_checkbox_group_input_386.html | 277 ++++------ reference/update_checkbox_input_386.html | 214 +++----- reference/update_progress_386.html | 198 +++---- reference/update_radio_input_386.html | 287 ++++------ reference/update_select_input_386.html | 252 ++++----- reference/update_tabset_panel_386.html | 220 +++----- reference/update_text_area_input_386.html | 179 ++----- reference/update_text_input_386.html | 179 ++----- reference/update_toggle_input_386.html | 214 +++----- reference/use_bs4_deps.html | 136 ++--- reference/validate_progress_value.html | 140 ++--- reference/validate_status.html | 149 ++---- sitemap.xml | 135 +++++ 49 files changed, 3271 insertions(+), 6151 deletions(-) create mode 100644 reference/Rplot001.png create mode 100644 sitemap.xml diff --git a/404.html b/404.html index ab7a5b2..eaa7248 100644 --- a/404.html +++ b/404.html @@ -1,66 +1,27 @@ - - - - + + + + - Page not found (404) • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - -
-
- + +
+ + + - - -
+
+
-
- +
+ + - - diff --git a/LICENSE-text.html b/LICENSE-text.html index d597236..b43d266 100644 --- a/LICENSE-text.html +++ b/LICENSE-text.html @@ -1,66 +1,12 @@ - - - - - - - -License • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -License • shiny386 + + - - - - -
-
- -
- -
+
+
-
- +
- - + + diff --git a/LICENSE.html b/LICENSE.html index a03c17f..de417e7 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -1,66 +1,12 @@ - - - - - - - -MIT License • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -MIT License • shiny386 + + - - - - -
-
- -
- -
+
+
-
- +
- - + + diff --git a/authors.html b/authors.html index dd2a668..91466de 100644 --- a/authors.html +++ b/authors.html @@ -1,66 +1,12 @@ - - - - - - - -Authors • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Authors and Citation • shiny386 - - + + - - - -
-
-
- -
+
- @@ -126,22 +79,20 @@

Authors

-
- +
- - + + diff --git a/index.html b/index.html index 2d0a94d..9ec8885 100644 --- a/index.html +++ b/index.html @@ -6,22 +6,21 @@ Old School Bootstrap 4 Template for Shiny • shiny386 - + - + + +
-
- +
+ -

The goal of shiny386 is to provide an old school Bootstrap 4 template for Shiny. It is built on top of the Bootstrap 386 HTML template.

-
-

-Installation

+

The goal of shiny386 is to provide an old school Bootstrap 4 template for Shiny. It is built on top of the Bootstrap 386 HTML template.

+
+

Installation +

You can install the released version of shiny386 from Github with:

-
remotes::install_github("RinteRface/shiny386")
+
+remotes::install_github("RinteRface/shiny386")
-
-

-Demo

+
+

Demo +

-

The original app may be found here

+

The original app may be found here

-
-

-Example

+
+

Example +

This is a basic example which shows you how to solve a common problem:

-
library(shiny)
-library(shiny386)
-ui <- page_386(
- card_386(
-  title = "My card",
-  "This is my card",
-  br(),
-  card_link_386(href = "https://www.google.com", "More"),
-  footer = "Card footer"
- )
-)
-
-server <- function(input, output, session) {}
-shinyApp(ui, server)
+
+library(shiny)
+library(shiny386)
+ui <- page_386(
+ card_386(
+  title = "My card",
+  "This is my card",
+  br(),
+  card_link_386(href = "https://www.google.com", "More"),
+  footer = "Card footer"
+ )
+)
+
+server <- function(input, output, session) {}
+shinyApp(ui, server)
-

Site built with pkgdown 1.5.1.

+

+

Site built with pkgdown 2.0.9.

@@ -163,5 +169,7 @@

Dev status

+ + diff --git a/news/index.html b/news/index.html index 1f4c909..46f221c 100644 --- a/news/index.html +++ b/news/index.html @@ -1,66 +1,12 @@ - - - - - - - -Changelog • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Changelog • shiny386 - + + - - - -
-
- -
- -
+
-
-

-shiny386 0.0.0.9000

-
    -
  • Added a NEWS.md file to track changes to the package.
  • -
-
+
+ +
  • Added a NEWS.md file to track changes to the package.
  • +
+
-
- +
- - + + diff --git a/pkgdown.css b/pkgdown.css index c01e592..80ea5b8 100644 --- a/pkgdown.css +++ b/pkgdown.css @@ -56,8 +56,10 @@ img.icon { float: right; } -img { +/* Ensure in-page images don't run outside their container */ +.contents img { max-width: 100%; + height: auto; } /* Fix bug in bootstrap (only seen in firefox) */ @@ -78,11 +80,10 @@ dd { /* Section anchors ---------------------------------*/ a.anchor { - margin-left: -30px; - display:inline-block; - width: 30px; - height: 30px; - visibility: hidden; + display: none; + margin-left: 5px; + width: 20px; + height: 20px; background-image: url(./link.svg); background-repeat: no-repeat; @@ -90,17 +91,15 @@ a.anchor { background-position: center center; } -.hasAnchor:hover a.anchor { - visibility: visible; -} - -@media (max-width: 767px) { - .hasAnchor:hover a.anchor { - visibility: hidden; - } +h1:hover .anchor, +h2:hover .anchor, +h3:hover .anchor, +h4:hover .anchor, +h5:hover .anchor, +h6:hover .anchor { + display: inline-block; } - /* Fixes for fixed navbar --------------------------*/ .contents h1, .contents h2, .contents h3, .contents h4 { @@ -244,14 +243,14 @@ nav[data-toggle='toc'] .nav .nav > .active:focus > a { .ref-index th {font-weight: normal;} -.ref-index td {vertical-align: top;} +.ref-index td {vertical-align: top; min-width: 100px} .ref-index .icon {width: 40px;} .ref-index .alias {width: 40%;} .ref-index-icons .alias {width: calc(40% - 40px);} .ref-index .title {width: 60%;} .ref-arguments th {text-align: right; padding-right: 10px;} -.ref-arguments th, .ref-arguments td {vertical-align: top;} +.ref-arguments th, .ref-arguments td {vertical-align: top; min-width: 100px} .ref-arguments .name {width: 20%;} .ref-arguments .desc {width: 80%;} @@ -264,31 +263,26 @@ table { /* Syntax highlighting ---------------------------------------------------- */ -pre { - word-wrap: normal; - word-break: normal; - border: 1px solid #eee; -} - -pre, code { +pre, code, pre code { background-color: #f8f8f8; color: #333; } +pre, pre code { + white-space: pre-wrap; + word-break: break-all; + overflow-wrap: break-word; +} -pre code { - overflow: auto; - word-wrap: normal; - white-space: pre; +pre { + border: 1px solid #eee; } -pre .img { +pre .img, pre .r-plt { margin: 5px 0; } -pre .img img { +pre .img img, pre .r-plt img { background-color: #fff; - display: block; - height: auto; } code a, pre a { @@ -305,9 +299,8 @@ a.sourceLine:hover { .kw {color: #264D66;} /* keyword */ .co {color: #888888;} /* comment */ -.message { color: black; font-weight: bolder;} -.error { color: orange; font-weight: bolder;} -.warning { color: #6A0366; font-weight: bolder;} +.error {font-weight: bolder;} +.warning {font-weight: bolder;} /* Clipboard --------------------------*/ @@ -365,3 +358,27 @@ mark { content: ""; } } + +/* Section anchors --------------------------------- + Added in pandoc 2.11: https://github.com/jgm/pandoc-templates/commit/9904bf71 +*/ + +div.csl-bib-body { } +div.csl-entry { + clear: both; +} +.hanging-indent div.csl-entry { + margin-left:2em; + text-indent:-2em; +} +div.csl-left-margin { + min-width:2em; + float:left; +} +div.csl-right-inline { + margin-left:2em; + padding-left:1em; +} +div.csl-indent { + margin-left: 2em; +} diff --git a/pkgdown.js b/pkgdown.js index 7e7048f..6f0eee4 100644 --- a/pkgdown.js +++ b/pkgdown.js @@ -80,7 +80,7 @@ $(document).ready(function() { var copyButton = ""; - $(".examples, div.sourceCode").addClass("hasCopyButton"); + $("div.sourceCode").addClass("hasCopyButton"); // Insert copy buttons: $(copyButton).prependTo(".hasCopyButton"); @@ -91,7 +91,7 @@ // Initialize clipboard: var clipboardBtnCopies = new ClipboardJS('[data-clipboard-copy]', { text: function(trigger) { - return trigger.parentNode.textContent; + return trigger.parentNode.textContent.replace(/\n#>[^\n]*/g, ""); } }); diff --git a/pkgdown.yml b/pkgdown.yml index d805089..02f0bab 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -1,6 +1,6 @@ -pandoc: 2.7.3 -pkgdown: 1.5.1 +pandoc: 3.1.11 +pkgdown: 2.0.9 pkgdown_sha: ~ -articles: [] -last_built: 2020-07-21T23:55Z +articles: {} +last_built: 2024-06-23T07:59Z diff --git a/reference/Rplot001.png b/reference/Rplot001.png new file mode 100644 index 0000000000000000000000000000000000000000..17a358060aed2a86950757bbd25c6f92c08c458f GIT binary patch literal 1011 zcmeAS@N?(olHy`uVBq!ia0y~yV0-|=9Be?5+AI5}0x7m6Z+90U4Fo@(ch>_c&H|6f zVg?3oArNM~bhqvg0|WD9PZ!6KiaBo&GBN^{G%5UFpXcEKVvd5*5Eu=C0SJK)8A6*F U7`aXvEC5;V>FVdQ&MBb@00SN#Z2$lO literal 0 HcmV?d00001 diff --git a/reference/badge_386.html b/reference/badge_386.html index 5f15387..4d14ae4 100644 --- a/reference/badge_386.html +++ b/reference/badge_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 badge — badge_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 badge — badge_386 • shiny386 - - + + - - -
-
- -
- -
+
@@ -120,67 +52,68 @@

Create a Bootstrap 386 badge

Create a Bootstrap 386 badge

-
badge_386(..., status, rounded = FALSE)
- -

Arguments

- - - - - - - - - - - - - - -
...

Text.

status

Badge status.

rounded

Rounded style. Default to FALSE.

- -

Value

- -

A shiny tags

- -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - ui <- page_386( - badge_386(status = "danger", "1"), - badge_386(status = "info", "2"), - badge_386(status = "success", "3", rounded = TRUE) - ) - - server <- function(input, output, session) {} - shinyApp(ui, server) -}
+
+
badge_386(..., status, rounded = FALSE)
+
+ +
+

Arguments

+
...
+

Text.

+ + +
status
+

Badge status.

+ + +
rounded
+

Rounded style. Default to FALSE.

+ +
+
+

Value

+ + +

A shiny tags

+
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+ ui <- page_386(
+  badge_386(status = "danger", "1"),
+  badge_386(status = "info", "2"),
+  badge_386(status = "success", "3", rounded = TRUE)
+ )
+
+ server <- function(input, output, session) {}
+ shinyApp(ui, server)
+}
+
+
+
-
- +
- - + + diff --git a/reference/button_386.html b/reference/button_386.html index cc4b9ee..8f5dd78 100644 --- a/reference/button_386.html +++ b/reference/button_386.html @@ -1,67 +1,12 @@ - - - - - - - -Bootstrap 386 action button — button_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Bootstrap 386 action button — button_386 • shiny386 - - + + - - -
-
- -
- -
+
@@ -120,88 +52,89 @@

Bootstrap 386 action button

Bootstrap 386 action button

-
button_386(inputId, label, status = NULL, icon = NULL, width = NULL, ...)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
inputId

The input slot that will be used to access the value.

label

The contents of the button or link--usually a text label, but -you could also use any other HTML, like an image.

status

Button color.

icon

An optional icon() to appear on the button.

width

The width of the input, e.g. '400px', or '100%'; -see validateCssUnit().

...

Named attributes to be applied to the button or link.

- -

Value

- -

A shiny tag.

- -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - button_386( - "btn", - HTML(paste("Value", textOutput("val"), sep = ":")), - icon = icon("thumbs-up"), - class = "btn-lg" - ) - ) - - server <- function(input, output) { - output$val <- renderText(input$btn) - } - - shinyApp(ui, server) -}
+
+
button_386(inputId, label, status = NULL, icon = NULL, width = NULL, ...)
+
+ +
+

Arguments

+
inputId
+

The input slot that will be used to access the value.

+ + +
label
+

The contents of the button or link--usually a text label, but +you could also use any other HTML, like an image.

+ + +
status
+

Button color.

+ + +
icon
+

An optional icon() to appear on the button.

+ + +
width
+

The width of the input, e.g. '400px', or '100%'; +see validateCssUnit().

+ + +
...
+

Named attributes to be applied to the button or link.

+ +
+
+

Value

+ + +

A shiny tag.

+
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  button_386(
+   "btn",
+   HTML(paste("Value", textOutput("val"), sep = ":")),
+   icon = icon("thumbs-up"),
+   class = "btn-lg"
+  )
+ )
+
+ server <- function(input, output) {
+   output$val <- renderText(input$btn)
+ }
+
+ shinyApp(ui, server)
+}
+
+
+
-
- +
- - + + diff --git a/reference/card.html b/reference/card.html index 4940390..f65189b 100644 --- a/reference/card.html +++ b/reference/card.html @@ -1,70 +1,15 @@ - - - - - - - -Create a Bootstrap 386 card — card_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 card — card_386 • shiny386 - - - - - - - - - - - + + - - -
-
- -
- -
+
@@ -126,96 +58,103 @@

Create a Bootstrap 386 card

Create a Bootstrap 386 card link element

-
card_386(..., title = NULL, status = NULL, footer = NULL)
-
-card_title_386(title)
-
-card_subtitle_386(subtitle)
-
-card_link_386(href, label)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
...

Card content.

title

Title text.

status

Card background status.

footer

Card footer.

subtitle

Card subtitle.

href

Target url.

label

Link text.

- -

Value

- -

A shiny tag

+
+
card_386(..., title = NULL, status = NULL, footer = NULL)
+
+card_title_386(title)
+
+card_subtitle_386(subtitle)
+
+card_link_386(href, label)
+
+ +
+

Arguments

+
...
+

Card content.

+ + +
title
+

Title text.

+ + +
status
+

Card background status.

+ + +
footer
+

Card footer.

+ + +
subtitle
+

Card subtitle.

+ + +
href
+

Target url.

+ + +
label
+

Link text.

+ +
+
+

Value

+ + +

A shiny tag

+ +

A shiny tag.

+ +

A shiny tag.

+ +

A shiny tag.

+
-

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - ui <- page_386( - card_386( - title = "My card", - "This is my card", - br(), - card_link_386(href = "https://www.google.com", "More"), - footer = "Card footer" - ) - ) - - server <- function(input, output, session) {} - shinyApp(ui, server) -}
+
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+ ui <- page_386(
+  card_386(
+   title = "My card",
+   "This is my card",
+   br(),
+   card_link_386(href = "https://www.google.com", "More"),
+   footer = "Card footer"
+  )
+ )
+
+ server <- function(input, output, session) {}
+ shinyApp(ui, server)
+}
+
+
+
-
- +
- - + + diff --git a/reference/checkbox_group_input_386.html b/reference/checkbox_group_input_386.html index 72b11a4..b62ca3f 100644 --- a/reference/checkbox_group_input_386.html +++ b/reference/checkbox_group_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 checkbox group input — checkbox_group_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 checkbox group input — checkbox_group_input_386 • shiny386 + + - - - - -
-
- -
- -
+
@@ -120,59 +52,47 @@

Create a Bootstrap 386 checkbox group input

Create a Bootstrap 386 checkbox group input

-
checkbox_group_input_386(
-  inputId,
-  label,
-  choices = NULL,
-  selected = NULL,
-  width = NULL,
-  choiceNames = NULL,
-  choiceValues = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

choices

List of values to show checkboxes for. If elements of the list +

+
checkbox_group_input_386(
+  inputId,
+  label,
+  choices = NULL,
+  selected = NULL,
+  width = NULL,
+  choiceNames = NULL,
+  choiceValues = NULL
+)
+
+ +
+

Arguments

+
inputId
+

The input slot that will be used to access the value.

+ + +
label
+

Display label for the control, or NULL for no label.

+ + +
choices
+

List of values to show checkboxes for. If elements of the list are named then that name rather than the value is displayed to the user. If this argument is provided, then choiceNames and choiceValues must not be provided, and vice-versa. The values should be strings; other -types (such as logicals and numbers) will be coerced to strings.

selected

The values that should be initially selected, if any.

width

The width of the input, e.g. '400px', or '100%'; -see validateCssUnit().

choiceNames

List of names and values, respectively, -that are displayed to the user in the app and correspond to the each -choice (for this reason, choiceNames and choiceValues -must have the same length). If either of these arguments is -provided, then the other must be provided and choices -must not be provided. The advantage of using both of these over -a named list for choices is that choiceNames allows any -type of UI object to be passed through (tag objects, icons, HTML code, -...), instead of just simple text. See Examples.

choiceValues

List of names and values, respectively, +types (such as logicals and numbers) will be coerced to strings.

+ + +
selected
+

The values that should be initially selected, if any.

+ + +
width
+

The width of the input, e.g. '400px', or '100%'; +see validateCssUnit().

+ + +
choiceNames, choiceValues
+

List of names and values, respectively, that are displayed to the user in the app and correspond to the each choice (for this reason, choiceNames and choiceValues must have the same length). If either of these arguments is @@ -180,57 +100,55 @@

Arg must not be provided. The advantage of using both of these over a named list for choices is that choiceNames allows any type of UI object to be passed through (tag objects, icons, HTML code, -...), instead of just simple text. See Examples.

- - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - checkbox_group_input_386("variable", "Variables to show:", - c("Cylinders" = "cyl", - "Transmission" = "am", - "Gears" = "gear")), - tableOutput("data") - ) - - server <- function(input, output, session) { - output$data <- renderTable({ - mtcars[, c("mpg", input$variable), drop = FALSE] - }, rownames = TRUE) - } - shinyApp(ui, server) - -}
+...), instead of just simple text. See Examples.

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  checkbox_group_input_386("variable", "Variables to show:",
+   c("Cylinders" = "cyl",
+     "Transmission" = "am",
+     "Gears" = "gear")),
+  tableOutput("data")
+ )
+
+ server <- function(input, output, session) {
+   output$data <- renderTable({
+    mtcars[, c("mpg", input$variable), drop = FALSE]
+   }, rownames = TRUE)
+ }
+ shinyApp(ui, server)
+
+}
+
+
+
-
- +
- - + + diff --git a/reference/checkbox_input_386.html b/reference/checkbox_input_386.html index e4a4cfb..fdf035f 100644 --- a/reference/checkbox_input_386.html +++ b/reference/checkbox_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 checkbox — checkbox_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 checkbox — checkbox_input_386 • shiny386 - - + + - - -
-
- -
- -
+
@@ -120,71 +52,69 @@

Create a Bootstrap 386 checkbox

Create a Bootstrap 386 checkbox

-
checkbox_input_386(inputId, label, value = FALSE, width = NULL)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

value

Initial value (TRUE or FALSE).

width

The width of the input, e.g. '400px', or '100%'; -see validateCssUnit().

- - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - checkbox_input_386("check", "Check me", TRUE), - verbatimTextOutput("val") - ) - - server <- function(input, output, session) { - output$val <- renderPrint(input$check) - } - shinyApp(ui, server) -}
+
+
checkbox_input_386(inputId, label, value = FALSE, width = NULL)
+
+ +
+

Arguments

+
inputId
+

The input slot that will be used to access the value.

+ + +
label
+

Display label for the control, or NULL for no label.

+ + +
value
+

Initial value (TRUE or FALSE).

+ + +
width
+

The width of the input, e.g. '400px', or '100%'; +see validateCssUnit().

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  checkbox_input_386("check", "Check me", TRUE),
+  verbatimTextOutput("val")
+ )
+
+ server <- function(input, output, session) {
+   output$val <- renderPrint(input$check)
+ }
+ shinyApp(ui, server)
+}
+
+
+
-
- +
- - + + diff --git a/reference/create_checkbox_tag.html b/reference/create_checkbox_tag.html index 6c22774..025f09c 100644 --- a/reference/create_checkbox_tag.html +++ b/reference/create_checkbox_tag.html @@ -1,67 +1,12 @@ - - - - - - - -Create checkbox/switch input based on the selected type — create_checkbox_tag • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create checkbox/switch input based on the selected type — create_checkbox_tag • shiny386 - - - - + + -
-
- -
- -
+
-

Used internally by toggle_input_386 and checkbox_input_386

+

Used internally by toggle_input_386 and checkbox_input_386

-
create_checkbox_tag(
-  inputId,
-  label,
-  value = FALSE,
-  width = NULL,
-  type = c("switch", "checkbox")
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

value

Initial value (TRUE or FALSE).

width

The width of the input, e.g. '400px', or '100%'; -see validateCssUnit().

type

Input type. This is to be able to distinguish between switch and checkbox, -which have slightly different design.

- -

Value

- -

An input tag.

+
+
create_checkbox_tag(
+  inputId,
+  label,
+  value = FALSE,
+  width = NULL,
+  type = c("switch", "checkbox")
+)
+
+ +
+

Arguments

+
inputId
+

The input slot that will be used to access the value.

+ + +
label
+

Display label for the control, or NULL for no label.

+ + +
value
+

Initial value (TRUE or FALSE).

+ + +
width
+

The width of the input, e.g. '400px', or '100%'; +see validateCssUnit().

+ + +
type
+

Input type. This is to be able to distinguish between switch and checkbox, +which have slightly different design.

+ +
+
+

Value

+ + +

An input tag.

+
+
-
- +
- - + + diff --git a/reference/dropdown.html b/reference/dropdown.html index b319727..f305642 100644 --- a/reference/dropdown.html +++ b/reference/dropdown.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 dropdown container for buttons/links — dropdown_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 dropdown container for buttons/links — dropdown_386 • shiny386 - - + + - - -
-
- -
- -
+
@@ -120,124 +52,129 @@

Create a Bootstrap 386 dropdown container for buttons/links

Can be a simple link or an action button

-
dropdown_386(..., inputId = NULL, label, status = NULL, open = FALSE)
-
-open_dropdown_386(inputId, session = shiny::getDefaultReactiveDomain())
-
-dropdown_item_386(inputId = NULL, href = NULL, label)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
...

Slot for dropdown_item_386.

inputId

If action button.

label

Button label.

status

Button status.

open

Whether to open the dropdown at start. Default to FALSE.

session

Shiny session object.

href

If simple link.

- -

Value

- -

A shiny tag

+
+
dropdown_386(..., inputId = NULL, label, status = NULL, open = FALSE)
+
+open_dropdown_386(inputId, session = shiny::getDefaultReactiveDomain())
+
+dropdown_item_386(inputId = NULL, href = NULL, label)
+
+ +
+

Arguments

+
...
+

Slot for dropdown_item_386.

+ + +
inputId
+

If action button.

+ + +
label
+

Button label.

+ + +
status
+

Button status.

+ + +
open
+

Whether to open the dropdown at start. Default to FALSE.

+ + +
session
+

Shiny session object.

+ + +
href
+

If simple link.

+ +
+
+

Value

+ + +

A shiny tag

+ +

A message from R to JavaScript through the websocket.

+ +

A shiny tag

+
-

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - dropdown_386( - inputId = "plop", - label = "Menu", - status = "danger", - open = FALSE, - dropdown_item_386(inputId = "btn1", label = "button 1"), - dropdown_item_386(href = "https://www.google.com/", label = "More") - ) - ) - - server <- function(input, output, session) { - observe(print(input$btn1)) - } - shinyApp(ui, server) -} -if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - fluidRow( - button_386("open", "Open dropdown", class = "btn-lg"), - dropdown_386( - inputId = "plop", - label = "Menu", - dropdown_item_386(inputId = "btn1", label = "button 1"), - dropdown_item_386(href = "https://www.google.com/", label = "More") - ) - ) - ) - - server <- function(input, output, session) { - observe(print(input$plop)) - observeEvent(input$open, { - open_dropdown_386("plop") - }) - observeEvent(req(input$plop), { - showNotification("Dropdown opened!") - }) - } - shinyApp(ui, server) -}
+
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+   dropdown_386(
+     inputId = "plop",
+     label = "Menu",
+     status = "danger",
+     open = FALSE,
+     dropdown_item_386(inputId = "btn1", label = "button 1"),
+     dropdown_item_386(href = "https://www.google.com/", label = "More")
+   )
+ )
+
+ server <- function(input, output, session) {
+   observe(print(input$btn1))
+ }
+ shinyApp(ui, server)
+}
+if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  fluidRow(
+    button_386("open", "Open dropdown", class = "btn-lg"),
+    dropdown_386(
+      inputId = "plop",
+      label = "Menu",
+      dropdown_item_386(inputId = "btn1", label = "button 1"),
+      dropdown_item_386(href = "https://www.google.com/", label = "More")
+    )
+  )
+ )
+
+ server <- function(input, output, session) {
+   observe(print(input$plop))
+   observeEvent(input$open, {
+     open_dropdown_386("plop")
+   })
+   observeEvent(req(input$plop), {
+     showNotification("Dropdown opened!")
+   })
+ }
+ shinyApp(ui, server)
+}
+
+
+
-
- +
- - + + diff --git a/reference/index.html b/reference/index.html index 635b16a..19e02d6 100644 --- a/reference/index.html +++ b/reference/index.html @@ -1,66 +1,12 @@ - - - - - - - -Function reference • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Function reference • shiny386 - - + + - - -
-
- -
- -
+
- - - - - - - - - - -
-

All functions

+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+

All functions

+

badge_386()

Create a Bootstrap 386 badge

+

button_386()

Bootstrap 386 action button

+

card_386() card_title_386() card_subtitle_386() card_link_386()

Create a Bootstrap 386 card

+

checkbox_group_input_386()

Create a Bootstrap 386 checkbox group input

+

checkbox_input_386()

Create a Bootstrap 386 checkbox

+

create_checkbox_tag()

Create checkbox/switch input based on the selected type

+

dropdown_386() open_dropdown_386() dropdown_item_386()

Create a Bootstrap 386 dropdown container for buttons/links

+

jumbotron_386()

Create a Bootstrap 386 Jumbotron

+

list_group_386()

Create a Bootstrap 386 list group container

+

list_group_item_386()

Create a Bootstrap 386 list group item

+

modal_386() show_modal_386() remove_modal_386()

Create a Bootstrap 386 modal

+

navbar_page_386() navbar_menu_386() update_navbar_page_386()

Create a Bootstrap 386 navbar page

+

page_386()

Create Bootstrap 386 page skeleton

+

progress_386()

Create a Bootstrap 386 progress bar

+

radio_input_386()

Create a Bootstrap 386 radio buttons

+

select_input_386()

Create a Bootstrap 386 select input

-

shiny386

+
+

shiny386-package shiny386

shiny386

+

show_toast_386()

Show a Bootstrap 386 toast on the client

+

tab_panel_386()

Create a Bootstrap 386 tab panel

+

tabset_panel_386()

Create a Bootstrap 386 tabset panel

+

text_area_input_386()

Create a Bootstrap 386 text area input

+

text_input_386()

Create a Bootstrap 386 text input

+

toast_386()

Create a Bootstrap 386 toast

+

toggle_input_386()

Custom Bootstrap 386 switch input

+

update_checkbox_group_input_386()

Change the value of a checkbox group input on the client

+

update_checkbox_input_386()

Update checkbox_input_386 on the client

+

update_progress_386()

Update a progress_386 on the client

+

update_radio_input_386()

Change the value of a radio input on the client

+

update_select_input_386()

Update a Bootstrap 386 select input on the client

+

update_tabset_panel_386()

Update a Bootstrap 386 tabset panel on the client

+

update_text_area_input_386()

Update a Bootstrap 386 text area input on the client

+

update_text_input_386()

Update a Bootstrap 386 text input on the client

+

update_toggle_input_386()

Update toggle_input_386 on the client

+

use_bs4_deps()

Create shiny386 dependencies

+

validate_progress_value()

Validate a progress_386 value

+

validate_status()

Validation function

- +
+
-
- +
- - + + diff --git a/reference/jumbotron_386.html b/reference/jumbotron_386.html index 5ea4a8d..a9138a3 100644 --- a/reference/jumbotron_386.html +++ b/reference/jumbotron_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 Jumbotron — jumbotron_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 Jumbotron — jumbotron_386 • shiny386 - + + - - - -
-
- -
- -
+
@@ -120,67 +52,68 @@

Create a Bootstrap 386 Jumbotron

Create a Bootstrap 386 Jumbotron

-
jumbotron_386(..., title = NULL)
- -

Arguments

- - - - - - - - - - -
...

Any element.

title

Jumbotron title.

- -

Value

- -

A shiny tag

- -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - jumbotron_386( - title = "Jumbotron 386", - p("Hello World"), - button_386("btn", "More", class = "btn-lg btn-block") - ) - ) - - server <- function(input, output, session) {} - - shinyApp(ui, server) -}
+
+
jumbotron_386(..., title = NULL)
+
+ +
+

Arguments

+
...
+

Any element.

+ + +
title
+

Jumbotron title.

+ +
+
+

Value

+ + +

A shiny tag

+
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  jumbotron_386(
+   title = "Jumbotron 386",
+   p("Hello World"),
+   button_386("btn", "More", class = "btn-lg btn-block")
+  )
+ )
+
+ server <- function(input, output, session) {}
+
+ shinyApp(ui, server)
+}
+
+
+
-
- +
- - + + diff --git a/reference/list_group_386.html b/reference/list_group_386.html index 83f2e8e..145aecf 100644 --- a/reference/list_group_386.html +++ b/reference/list_group_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 list group container — list_group_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 list group container — list_group_386 • shiny386 + + - - - - -
-
- -
- -
+
@@ -120,119 +52,122 @@

Create a Bootstrap 386 list group container

Create a Bootstrap 386 list group container

-
list_group_386(..., width = 4)
- -

Arguments

- - - - - - - - - - -
...

Slot for list_group_item_386.

width

List group width. 4 by default. Between 1 and 12.

- - -

Examples

-
if(interactive()){ - library(shiny) - library(shiny386) - - shinyApp( - ui = page_386( - fluidRow( - list_group_386( - list_group_item_386( - type = "basic", - "Cras justo odio" - ), - list_group_item_386( - type = "basic", - "Dapibus ac facilisis in" - ), - list_group_item_386( - type = "basic", - "Morbi leo risus" - ) - ), - list_group_386( - list_group_item_386( - "Cras justo odio", - active = TRUE, - disabled = FALSE, - type = "action", - src = "http://www.google.fr" - ), - list_group_item_386( - active = FALSE, - disabled = FALSE, - type = "action", - "Dapibus ac facilisis in", - src = "http://www.google.fr" - ), - list_group_item_386( - "Morbi leo risus", - active = FALSE, - disabled = TRUE, - type = "action", - src = "http://www.google.fr" - ) - ), - list_group_386( - list_group_item_386( - "Donec id elit non mi porta gravida at eget metus. - Maecenas sed diam eget risus varius blandit.", - active = TRUE, - disabled = FALSE, - type = "heading", - title = "List group item heading", - subtitle = "3 days ago", - footer = "Donec id elit non mi porta." - ), - list_group_item_386( - "Donec id elit non mi porta gravida at eget metus. - Maecenas sed diam eget risus varius blandit.", - active = FALSE, - disabled = FALSE, - type = "heading", - title = "List group item heading", - subtitle = "3 days ago", - footer = "Donec id elit non mi porta." - ) - ) - ) - ), - server = function(input, output) {} - ) -}
+
+
list_group_386(..., width = 4)
+
+ +
+

Arguments

+
...
+

Slot for list_group_item_386.

+ + +
width
+

List group width. 4 by default. Between 1 and 12.

+ +
+
+

Author

+

David Granjon, dgranjon@ymail.com

+
+ +
+

Examples

+
if(interactive()){
+ library(shiny)
+ library(shiny386)
+
+ shinyApp(
+   ui = page_386(
+      fluidRow(
+       list_group_386(
+       list_group_item_386(
+        type = "basic",
+        "Cras justo odio"
+       ),
+       list_group_item_386(
+        type = "basic",
+        "Dapibus ac facilisis in"
+       ),
+       list_group_item_386(
+        type = "basic",
+        "Morbi leo risus"
+       )
+      ),
+      list_group_386(
+       list_group_item_386(
+        "Cras justo odio",
+        active = TRUE,
+        disabled = FALSE,
+        type = "action",
+        src = "http://www.google.fr"
+       ),
+       list_group_item_386(
+        active = FALSE,
+        disabled = FALSE,
+        type = "action",
+        "Dapibus ac facilisis in",
+        src = "http://www.google.fr"
+       ),
+       list_group_item_386(
+        "Morbi leo risus",
+        active = FALSE,
+        disabled = TRUE,
+        type = "action",
+        src = "http://www.google.fr"
+       )
+      ),
+      list_group_386(
+       list_group_item_386(
+        "Donec id elit non mi porta gravida at eget metus.
+        Maecenas sed diam eget risus varius blandit.",
+        active = TRUE,
+        disabled = FALSE,
+        type = "heading",
+        title = "List group item heading",
+        subtitle = "3 days ago",
+        footer = "Donec id elit non mi porta."
+       ),
+       list_group_item_386(
+        "Donec id elit non mi porta gravida at eget metus.
+        Maecenas sed diam eget risus varius blandit.",
+        active = FALSE,
+        disabled = FALSE,
+        type = "heading",
+        title = "List group item heading",
+        subtitle = "3 days ago",
+        footer = "Donec id elit non mi porta."
+       )
+      )
+     )
+   ),
+   server = function(input, output) {}
+ )
+}
+
+
+
+
-
- +
- - + + diff --git a/reference/list_group_item_386.html b/reference/list_group_item_386.html index 764e29f..f17746a 100644 --- a/reference/list_group_item_386.html +++ b/reference/list_group_item_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 list group item — list_group_item_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 list group item — list_group_item_386 • shiny386 - - + + - - -
-
- -
- -
+
@@ -120,82 +52,81 @@

Create a Bootstrap 386 list group item

Create a Bootstrap 386 list group item

-
list_group_item_386(
-  ...,
-  active = FALSE,
-  disabled = FALSE,
-  type = c("basic", "action", "heading"),
-  src = "#",
-  title = NULL,
-  subtitle = NULL,
-  footer = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
...

Item content.

active

Whether the item is active or not. FALSE by default. -Only if type is "action" or "heading".

disabled

Whether the item is disabled or not. FALSE by default. -Only if type is "action" or "heading".

type

Item type. Choose between "basic", "action" and "heading".

src

Item external link.

title

Item title (only if type is "heading").

subtitle

Item subtitle (only if type is "heading").

footer

Item footer content (only if type is "heading").

+
+
list_group_item_386(
+  ...,
+  active = FALSE,
+  disabled = FALSE,
+  type = c("basic", "action", "heading"),
+  src = "#",
+  title = NULL,
+  subtitle = NULL,
+  footer = NULL
+)
+
+ +
+

Arguments

+
...
+

Item content.

+ + +
active
+

Whether the item is active or not. FALSE by default. +Only if type is "action" or "heading".

+ + +
disabled
+

Whether the item is disabled or not. FALSE by default. +Only if type is "action" or "heading".

+ + +
type
+

Item type. Choose between "basic", "action" and "heading".

+
src
+

Item external link.

+ + +
title
+

Item title (only if type is "heading").

+ + +
subtitle
+

Item subtitle (only if type is "heading").

+ + +
footer
+

Item footer content (only if type is "heading").

+ +
+
+

Author

+

David Granjon, dgranjon@ymail.com

+
+
+
-
- +
- - + + diff --git a/reference/modal.html b/reference/modal.html index 2113fcb..c910bf0 100644 --- a/reference/modal.html +++ b/reference/modal.html @@ -1,69 +1,14 @@ - - - - - - - -Create a Bootstrap 386 modal — modal_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 modal — modal_386 • shiny386 - - - - - - - - - - - + + - - -
-
- -
- -
+
@@ -124,152 +56,153 @@

Create a Bootstrap 386 modal

Hide a Bootstrap 386 modal

-
modal_386(
-  ...,
-  title = NULL,
-  footer = modalButton("Dismiss"),
-  size = c("m", "s", "l"),
-  easyClose = FALSE,
-  fade = TRUE
-)
-
-show_modal_386(ui, session = getDefaultReactiveDomain())
-
-remove_modal_386(session = getDefaultReactiveDomain())
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
...

UI elements for the body of the modal dialog box.

title

An optional title for the dialog.

footer

UI for footer. Use NULL for no footer.

size

One of "s" for small, "m" (the default) for medium, -or "l" for large.

easyClose

If TRUE, the modal dialog can be dismissed by +

+
modal_386(
+  ...,
+  title = NULL,
+  footer = modalButton("Dismiss"),
+  size = c("m", "s", "l", "xl"),
+  easyClose = FALSE,
+  fade = TRUE
+)
+
+show_modal_386(ui, session = getDefaultReactiveDomain())
+
+remove_modal_386(session = getDefaultReactiveDomain())
+
+ +
+

Arguments

+
...
+

UI elements for the body of the modal dialog box.

+ + +
title
+

An optional title for the dialog.

+ + +
footer
+

UI for footer. Use NULL for no footer.

+ + +
size
+

One of "s" for small, "m" (the default) for medium, +"l" for large, or "xl" for extra large. Note that "xl" only +works with Bootstrap 4 and above (to opt-in to Bootstrap 4+, +pass bslib::bs_theme() to the theme argument of a page container +like fluidPage()).

+ + +
easyClose
+

If TRUE, the modal dialog can be dismissed by clicking outside the dialog box, or be pressing the Escape key. If FALSE (the default), the modal dialog can't be dismissed in those -ways; instead it must be dismissed by clicking on the dismiss button, or -from a call to removeModal() on the server.

fade

If FALSE, the modal dialog will have no fade-in animation -(it will simply appear rather than fade in to view).

ui

UI content to show in the modal.

session

The session object passed to function given to -shinyServer.

- - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - shinyApp( - ui = page_386( - button_386("show", "Show modal dialog"), - verbatimTextOutput("dataInfo") - ), - - server = function(input, output) { - # reactiveValues object for storing current data set. - vals <- reactiveValues(data = NULL) - - # Return the UI for a modal dialog with data selection input. If 'failed' is - # TRUE, then display a message that the previous value was invalid. - dataModal <- function(failed = FALSE) { - modal_386( - textInput("dataset", "Choose data set", - placeholder = 'Try "mtcars" or "abc"' - ), - span('(Try the name of a valid data object like "mtcars", ', - 'then a name of a non-existent object like "abc")'), - if (failed) - div(tags$b("Invalid name of data object", style = "color: red;")), - - footer = tagList( - modalButton("Cancel"), - button_386("ok", "OK") - ) - ) - } - - # Show modal when button is clicked. - observeEvent(input$show, { - show_modal_386(dataModal()) - }) - - # When OK button is pressed, attempt to load the data set. If successful, - # remove the modal. If not show another modal, but this time with a failure - # message. - observeEvent(input$ok, { - # Check that data object exists and is data frame. - if (!is.null(input$dataset) && nzchar(input$dataset) && - exists(input$dataset) && is.data.frame(get(input$dataset))) { - vals$data <- get(input$dataset) - remove_modal_386() - } else { - show_modal_386(dataModal(failed = TRUE)) - } - }) - - # Display information about selected data - output$dataInfo <- renderPrint({ - if (is.null(vals$data)) - "No data selected" - else - summary(vals$data) - }) - } - ) -}
+ways; instead it must be dismissed by clicking on a modalButton(), or +from a call to removeModal() on the server.

+ + +
fade
+

If FALSE, the modal dialog will have no fade-in animation +(it will simply appear rather than fade in to view).

+ + +
ui
+

UI content to show in the modal.

+ + +
session
+

The session object passed to function given to +shinyServer.

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ shinyApp(
+  ui = page_386(
+    button_386("show", "Show modal dialog"),
+    verbatimTextOutput("dataInfo")
+  ),
+
+  server = function(input, output) {
+    # reactiveValues object for storing current data set.
+    vals <- reactiveValues(data = NULL)
+
+   # Return the UI for a modal dialog with data selection input. If 'failed' is
+   # TRUE, then display a message that the previous value was invalid.
+   dataModal <- function(failed = FALSE) {
+     modal_386(
+       textInput("dataset", "Choose data set",
+                 placeholder = 'Try "mtcars" or "abc"'
+       ),
+       span('(Try the name of a valid data object like "mtcars", ',
+            'then a name of a non-existent object like "abc")'),
+       if (failed)
+         div(tags$b("Invalid name of data object", style = "color: red;")),
+
+       footer = tagList(
+         modalButton("Cancel"),
+         button_386("ok", "OK")
+       )
+     )
+   }
+
+   # Show modal when button is clicked.
+   observeEvent(input$show, {
+     show_modal_386(dataModal())
+   })
+
+   # When OK button is pressed, attempt to load the data set. If successful,
+   # remove the modal. If not show another modal, but this time with a failure
+   # message.
+   observeEvent(input$ok, {
+     # Check that data object exists and is data frame.
+     if (!is.null(input$dataset) && nzchar(input$dataset) &&
+         exists(input$dataset) && is.data.frame(get(input$dataset))) {
+       vals$data <- get(input$dataset)
+       remove_modal_386()
+     } else {
+       show_modal_386(dataModal(failed = TRUE))
+     }
+   })
+
+   # Display information about selected data
+   output$dataInfo <- renderPrint({
+     if (is.null(vals$data))
+       "No data selected"
+     else
+       summary(vals$data)
+   })
+  }
+ )
+}
+
+
+
- - - + + diff --git a/reference/navbar.html b/reference/navbar.html index 63832c2..58d61b3 100644 --- a/reference/navbar.html +++ b/reference/navbar.html @@ -1,69 +1,14 @@ - - - - - - - -Create a Bootstrap 386 navbar page — navbar_page_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 navbar page — navbar_page_386 • shiny386 - - - - - - - - - - + + - - - -
-
- -
- -
+
@@ -124,225 +56,232 @@

Create a Bootstrap 386 navbar page

Update a Bootstrap 386 navbar on the client

-
navbar_page_386(
-  title,
-  ...,
-  id = NULL,
-  selected = NULL,
-  position = c("static-top", "fixed-top", "fixed-bottom"),
-  header = NULL,
-  footer = NULL,
-  inverse = FALSE,
-  windowTitle = title
-)
-
-navbar_menu_386(title, ..., menuName = title, icon = NULL)
-
-update_navbar_page_386(session, inputId, selected = NULL)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
title

The title to display in the navbar

...

tabPanel() elements to include in the page. The +

+
navbar_page_386(
+  title,
+  ...,
+  id = NULL,
+  selected = NULL,
+  position = c("static-top", "fixed-top", "fixed-bottom"),
+  header = NULL,
+  footer = NULL,
+  inverse = FALSE,
+  windowTitle = title
+)
+
+navbar_menu_386(title, ..., menuName = title, icon = NULL)
+
+update_navbar_page_386(
+  session = getDefaultReactiveDomain(),
+  inputId,
+  selected = NULL
+)
+
+ +
+

Arguments

+
title
+

The title to display in the navbar

+ + +
...
+

tabPanel() elements to include in the page. The navbarMenu function also accepts strings, which will be used as menu section headers. If the string is a set of dashes like "----" a -horizontal separator will be displayed in the menu.

id

If provided, you can use input$id in your +horizontal separator will be displayed in the menu.

+ + +
id
+

If provided, you can use input$id in your server logic to determine which of the current tabs is active. The value will correspond to the value argument that is passed to -tabPanel().

selected

The value (or, if none was supplied, the title) +tabPanel().

+ + +
selected
+

The value (or, if none was supplied, the title) of the tab that should be selected by default. If NULL, the first -tab will be selected.

position

Determines whether the navbar should be displayed at the top +tab will be selected.

+ + +
position
+

Determines whether the navbar should be displayed at the top of the page with normal scrolling behavior ("static-top"), pinned at the top ("fixed-top"), or pinned at the bottom ("fixed-bottom"). Note that using "fixed-top" or "fixed-bottom" will cause the navbar to overlay your body content, unless you add padding, e.g.: tags$style(type="text/css", "body - {padding-top: 70px;}")

header

Tag or list of tags to display as a common header above all -tabPanels.

footer

Tag or list of tags to display as a common footer below all -tabPanels

inverse

TRUE to use a dark background and light text for the -navigation bar

windowTitle

The title that should be displayed by the browser window. -Useful if title is not a string.

menuName

A name that identifies this navbarMenu. This + {padding-top: 70px;}")

+ + +
header
+

Tag or list of tags to display as a common header above all +tabPanels.

+ + +
footer
+

Tag or list of tags to display as a common footer below all +tabPanels

+ + +
inverse
+

TRUE to use a dark background and light text for the +navigation bar

+ + +
windowTitle
+

the browser window title (as a character string). The +default value, NA, means to use any character strings that appear in +title (if none are found, the host URL of the page is displayed by +default).

+ + +
menuName
+

A name that identifies this navbarMenu. This is needed if you want to insert/remove or show/hide an entire -navbarMenu.

icon

Optional icon to appear on a navbarMenu tab.

session

The session object passed to function given to -shinyServer.

inputId

The id of the tabsetPanel, navlistPanel, -or navbarPage object.

- -

Value

- -

A shiny tag

- -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- navbar_page_386( - "App Title", - id = "tabset", - tab_panel_386( - "Tab 1", - radio_input_386( - "dist", "Distribution type:", - c("Normal" = "norm", - "Uniform" = "unif", - "Log-normal" = "lnorm", - "Exponential" = "exp") - ), - plotOutput("distPlot") - ), - tab_panel_386( - "Tab 2", - select_input_386( - "variable", "Variable:", - c("Cylinders" = "cyl", - "Transmission" = "am", - "Gears" = "gear") - ), - tableOutput("data") - ), - navbar_menu_386( - "More", - tab_panel_386("Summary", "Extra content 1"), - "----", - "Section header", - tab_panel_386("Table", "Extra content 2") - ) - ) - - server <- function(input, output, session) { - output$distPlot <- renderPlot({ - dist <- switch(input$dist, - norm = rnorm, - unif = runif, - lnorm = rlnorm, - exp = rexp, - rnorm) - - hist(dist(500)) - }) - - output$data <- renderTable({ - mtcars[, c("mpg", input$variable), drop = FALSE] - }, rownames = TRUE) - - observe(print(input$tabset)) - - } - shinyApp(ui, server) -} -if (interactive()) { - library(shiny) - library(shiny386) - - ui <- navbar_page_386( - "App Title", - id = "tabset", - selected = "Tab 2", - header = radio_input_386("controller", "Update tab", 1:4), - tabPanel( - "Tab 1", - "Content 1" - ), - tabPanel( - "Tab 2", - "Content 2" - ), - navbar_menu_386( - "More", - tab_panel_386("Tab 3", "Extra content 1"), - "----", - "Section header", - tab_panel_386("Tab 4", "Extra content 2") - ) - ) - - server <- function(input, output, session) { - observeEvent(input$controller, { - update_navbar_page_386(session, "tabset", - selected = paste("Tab", input$controller) - ) - }) - } - shinyApp(ui, server) - -}
+navbarMenu.

+ + +
icon
+

Optional icon to appear on a navbarMenu tab.

+ + +
session
+

The session object passed to function given to +shinyServer. Default is getDefaultReactiveDomain().

+ + +
inputId
+

The id of the tabsetPanel, navlistPanel, +or navbarPage object.

+ +
+
+

Value

+ + +

A shiny tag

+
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- navbar_page_386(
+  "App Title",
+  id = "tabset",
+  tab_panel_386(
+    "Tab 1",
+    radio_input_386(
+      "dist", "Distribution type:",
+      c("Normal" = "norm",
+        "Uniform" = "unif",
+        "Log-normal" = "lnorm",
+        "Exponential" = "exp")
+    ),
+    plotOutput("distPlot")
+  ),
+  tab_panel_386(
+    "Tab 2",
+    select_input_386(
+      "variable", "Variable:",
+      c("Cylinders" = "cyl",
+        "Transmission" = "am",
+        "Gears" = "gear")
+    ),
+    tableOutput("data")
+  ),
+  navbar_menu_386(
+   "More",
+   tab_panel_386("Summary", "Extra content 1"),
+   "----",
+   "Section header",
+   tab_panel_386("Table", "Extra content 2")
+  )
+ )
+
+ server <- function(input, output, session) {
+   output$distPlot <- renderPlot({
+     dist <- switch(input$dist,
+                    norm = rnorm,
+                    unif = runif,
+                    lnorm = rlnorm,
+                    exp = rexp,
+                    rnorm)
+
+     hist(dist(500))
+   })
+
+   output$data <- renderTable({
+     mtcars[, c("mpg", input$variable), drop = FALSE]
+   }, rownames = TRUE)
+
+   observe(print(input$tabset))
+
+ }
+ shinyApp(ui, server)
+}
+if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- navbar_page_386(
+  "App Title",
+  id = "tabset",
+  selected = "Tab 2",
+  header = radio_input_386("controller", "Update tab", 1:4),
+  tabPanel(
+    "Tab 1",
+    "Content 1"
+  ),
+  tabPanel(
+    "Tab 2",
+    "Content 2"
+  ),
+  navbar_menu_386(
+    "More",
+    tab_panel_386("Tab 3", "Extra content 1"),
+    "----",
+    "Section header",
+    tab_panel_386("Tab 4", "Extra content 2")
+  )
+ )
+
+ server <- function(input, output, session) {
+   observeEvent(input$controller, {
+     update_navbar_page_386(session, "tabset",
+                            selected = paste("Tab", input$controller)
+     )
+   })
+ }
+ shinyApp(ui, server)
+
+}
+
+
+
- - - + + diff --git a/reference/page_386.html b/reference/page_386.html index 15e4927..d5e896e 100644 --- a/reference/page_386.html +++ b/reference/page_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create Bootstrap 386 page skeleton — page_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create Bootstrap 386 page skeleton — page_386 • shiny386 - - - - + + -
-
- -
- -
+
@@ -120,51 +52,49 @@

Create Bootstrap 386 page skeleton

Create Bootstrap 386 page skeleton

-
page_386(..., title = NULL)
+
+
page_386(..., title = NULL)
+
+ +
+

Arguments

+
...
+

Slot for shiny386 layout elements.

-

Arguments

- - - - - - - - - - -
...

Slot for shiny386 layout elements.

title

The browser window title (defaults to the host URL of the page). -Can also be set as a side effect of the titlePanel() function.

-

Value

+
title
+

The browser window title (defaults to the host URL of the page). +Can also be set as a side effect of the titlePanel() function.

-

A list of tags

+
+
+

Value

+ + +

A list of tags

+
+
- - - + + diff --git a/reference/pipe.html b/reference/pipe.html index 1701b66..58c0989 100644 --- a/reference/pipe.html +++ b/reference/pipe.html @@ -1,67 +1,12 @@ - - - - - - - -Pipe operator — %>% • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Pipe operator — %>% • shiny386 - + + - - - -
-
- -
- -
+
@@ -120,35 +52,32 @@

Pipe operator

See magrittr::%>% for details.

-
lhs %>% rhs
- +
+
lhs %>% rhs
+
+
- - - + + diff --git a/reference/progress_386.html b/reference/progress_386.html index ee85790..24ad990 100644 --- a/reference/progress_386.html +++ b/reference/progress_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 progress bar — progress_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 progress bar — progress_386 • shiny386 - - + + - - -
-
- -
- -
+
-

The progress bar may be updated server side. See update_progress_386.

+

The progress bar may be updated server side. See update_progress_386.

+
+ +
+
progress_386(id = NULL, value, status = NULL)
-
progress_386(id = NULL, value, status = NULL)
+
+

Arguments

+
id
+

Progress unique id.

-

Arguments

- - - - - - - - - - - - - - -
id

Progress unique id.

value

Progress value. Numeric between 0 and 100.

status

Progress status.

-

Value

+
value
+

Progress value. Numeric between 0 and 100.

-

A progress bar tag.

-

See also

- +
status
+

Progress status.

+ +
+
+

Value

+ + +

A progress bar tag.

+
+
+

See also

+ +
+
-
- +
- - + + diff --git a/reference/radio_input_386.html b/reference/radio_input_386.html index 5ffa14e..5e4e564 100644 --- a/reference/radio_input_386.html +++ b/reference/radio_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 radio buttons — radio_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 radio buttons — radio_input_386 • shiny386 - - - - + + -
-
- -
- -
+
@@ -120,126 +52,112 @@

Create a Bootstrap 386 radio buttons

Create a Bootstrap 386 radio buttons

-
radio_input_386(
-  inputId,
-  label,
-  choices = NULL,
-  selected = NULL,
-  width = NULL,
-  choiceNames = NULL,
-  choiceValues = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

choices

List of values to select from (if elements of the list are +

+
radio_input_386(
+  inputId,
+  label,
+  choices = NULL,
+  selected = NULL,
+  width = NULL,
+  choiceNames = NULL,
+  choiceValues = NULL
+)
+
+ +
+

Arguments

+
inputId
+

The input slot that will be used to access the value.

+ + +
label
+

Display label for the control, or NULL for no label.

+ + +
choices
+

List of values to select from (if elements of the list are named then that name rather than the value is displayed to the user). If -this argument is provided, then choiceNames and choiceValues -must not be provided, and vice-versa. The values should be strings; other -types (such as logicals and numbers) will be coerced to strings.

selected

The initially selected value (if not specified then defaults -to the first value)

width

The width of the input, e.g. '400px', or '100%'; -see validateCssUnit().

choiceNames

List of names and values, respectively, that -are displayed to the user in the app and correspond to the each choice (for -this reason, choiceNames and choiceValues must have the same -length). If either of these arguments is provided, then the other -must be provided and choices must not be provided. The -advantage of using both of these over a named list for choices is -that choiceNames allows any type of UI object to be passed through -(tag objects, icons, HTML code, ...), instead of just simple text. See -Examples.

choiceValues

List of names and values, respectively, that +this argument is provided, then choiceNames and choiceValues must not +be provided, and vice-versa. The values should be strings; other types +(such as logicals and numbers) will be coerced to strings.

+ + +
selected
+

The initially selected value. If not specified, then it +defaults to the first item in choices. To start with no items selected, +use character(0).

+ + +
width
+

The width of the input, e.g. '400px', or '100%'; +see validateCssUnit().

+ + +
choiceNames, choiceValues
+

List of names and values, respectively, that are displayed to the user in the app and correspond to the each choice (for -this reason, choiceNames and choiceValues must have the same -length). If either of these arguments is provided, then the other -must be provided and choices must not be provided. The -advantage of using both of these over a named list for choices is -that choiceNames allows any type of UI object to be passed through -(tag objects, icons, HTML code, ...), instead of just simple text. See -Examples.

- - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - radio_input_386("dist", "Distribution type:", - c("Normal" = "norm", - "Uniform" = "unif", - "Log-normal" = "lnorm", - "Exponential" = "exp")), - plotOutput("distPlot") - ) - - server <- function(input, output, session) { - output$distPlot <- renderPlot({ - dist <- switch(input$dist, - norm = rnorm, - unif = runif, - lnorm = rlnorm, - exp = rexp, - rnorm) - - hist(dist(500)) - }) - } - shinyApp(ui, server) - -}
+this reason, choiceNames and choiceValues must have the same length). +If either of these arguments is provided, then the other must be provided +and choices must not be provided. The advantage of using both of these +over a named list for choices is that choiceNames allows any type of UI +object to be passed through (tag objects, icons, HTML code, ...), instead +of just simple text. See Examples.

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  radio_input_386("dist", "Distribution type:",
+                  c("Normal" = "norm",
+                    "Uniform" = "unif",
+                    "Log-normal" = "lnorm",
+                    "Exponential" = "exp")),
+  plotOutput("distPlot")
+ )
+
+ server <- function(input, output, session) {
+   output$distPlot <- renderPlot({
+     dist <- switch(input$dist,
+                    norm = rnorm,
+                    unif = runif,
+                    lnorm = rlnorm,
+                    exp = rexp,
+                    rnorm)
+
+     hist(dist(500))
+   })
+ }
+ shinyApp(ui, server)
+
+}
+
+
+
- - - + + diff --git a/reference/select_input_386.html b/reference/select_input_386.html index 7a12a19..96779fe 100644 --- a/reference/select_input_386.html +++ b/reference/select_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 select input — select_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 select input — select_input_386 • shiny386 + + - - - - -
-
- -
- -
+
@@ -120,112 +52,115 @@

Create a Bootstrap 386 select input

Create a Bootstrap 386 select input

-
select_input_386(
-  inputId,
-  label,
-  choices,
-  selected = NULL,
-  multiple = FALSE,
-  selectize = TRUE,
-  width = NULL,
-  size = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

choices

List of values to select from. If elements of the list are +

+
select_input_386(
+  inputId,
+  label,
+  choices,
+  selected = NULL,
+  multiple = FALSE,
+  selectize = FALSE,
+  width = NULL,
+  size = NULL
+)
+
+ +
+

Arguments

+
inputId
+

The input slot that will be used to access the value.

+ + +
label
+

Display label for the control, or NULL for no label.

+ + +
choices
+

List of values to select from. If elements of the list are named, then that name --- rather than the value --- is displayed to the user. It's also possible to group related inputs by providing a named list whose elements are (either named or unnamed) lists, vectors, or factors. In this case, the outermost names will be used as the group labels (leveraging the <optgroup> HTML tag) for the elements in the respective sublist. See -the example section for a small demo of this feature.

selected

The initially selected value (or multiple values if multiple = TRUE). If not specified then defaults to the first value for -single-select lists and no values for multiple select lists.

multiple

Is selection of multiple items allowed?

selectize

Whether to use selectize.js or not.

width

The width of the input, e.g. '400px', or '100%'; -see validateCssUnit().

size

Number of items to show in the selection box; a larger number +the example section for a small demo of this feature.

+ + +
selected
+

The initially selected value (or multiple values if multiple = TRUE). If not specified then defaults to the first value for +single-select lists and no values for multiple select lists.

+ + +
multiple
+

Is selection of multiple items allowed?

+ + +
selectize
+

Whether to use selectize.js or not.

+ + +
width
+

The width of the input, e.g. '400px', or '100%'; +see validateCssUnit().

+ + +
size
+

Number of items to show in the selection box; a larger number will result in a taller box. Not compatible with selectize=TRUE. Normally, when multiple=FALSE, a select input will be a drop-down list, -but when size is set, it will be a box instead.

- - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - select_input_386("variable", "Variable:", - c("Cylinders" = "cyl", - "Transmission" = "am", - "Gears" = "gear")), - tableOutput("data") - ) - - server <- function(input, output, session) { - output$data <- renderTable({ - mtcars[, c("mpg", input$variable), drop = FALSE] - }, rownames = TRUE) - } - shinyApp(ui, server) - -}
+but when size is set, it will be a box instead.

+ +
+
+

Note

+

Incompatible with selectize. Set to FALSE +by default to have correct CSS rendering.

+
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  select_input_386("variable", "Variable:",
+   c("Cylinders" = "cyl",
+     "Transmission" = "am",
+     "Gears" = "gear")),
+   tableOutput("data")
+ )
+
+ server <- function(input, output, session) {
+  output$data <- renderTable({
+   mtcars[, c("mpg", input$variable), drop = FALSE]
+  }, rownames = TRUE)
+ }
+ shinyApp(ui, server)
+
+}
+
+
+
- - - + + diff --git a/reference/shiny386.html b/reference/shiny386.html index db16ee9..0e04e73 100644 --- a/reference/shiny386.html +++ b/reference/shiny386.html @@ -1,67 +1,12 @@ - - - - - - - -shiny386 — shiny386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -shiny386 — shiny386 • shiny386 - - + + - - -
-
- -
- -
+
@@ -121,33 +53,38 @@

shiny386

- + +
+

Author

+

Maintainer: David Granjon dgranjon@ymail.com

+
+
- - - + + diff --git a/reference/show_toast_386.html b/reference/show_toast_386.html index 583a5e4..3f057ec 100644 --- a/reference/show_toast_386.html +++ b/reference/show_toast_386.html @@ -1,67 +1,12 @@ - - - - - - - -Show a Bootstrap 386 toast on the client — show_toast_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Show a Bootstrap 386 toast on the client — show_toast_386 • shiny386 - - + + - - -
-
- -
- -
+
@@ -120,93 +52,91 @@

Show a Bootstrap 386 toast on the client

Show a Bootstrap 386 toast on the client

-
show_toast_386(id, options = NULL, session = getDefaultReactiveDomain())
- -

Arguments

- - - - - - - - - - - - - - -
id

Toast id.

options

Toast options: see https://getbootstrap.com/docs/4.3/components/toasts/.

session

Shiny session

- - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - toast_386( - id = "toast", - title = "Hello", - subtitle = "now", - "Toast body", - img = "https://preview-dev.tabler.io/static/logo.svg" - ), - button_386("launch", "Go!", class = "btn-lg") - ) - - server <- function(input, output, session) { - observe(print(input$toast)) - observeEvent(input$launch, { - removeNotification("notif") - show_toast_386( - "toast", - options = list( - animation = FALSE, - delay = 3000 - ) - ) - }) - - observeEvent(input$toast, { - showNotification( - id = "notif", - "Toast was closed", - type = "warning", - duration = 1, - - ) - }) - } - - shinyApp(ui, server) -}
+
+
show_toast_386(id, options = NULL, session = getDefaultReactiveDomain())
+
+ +
+

Arguments

+
id
+

Toast id.

+ + +
options
+

Toast options: see https://getbootstrap.com/docs/4.3/components/toasts/.

+ + +
session
+

Shiny session

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  toast_386(
+    id = "toast",
+    title = "Hello",
+    subtitle = "now",
+    "Toast body",
+    img = "https://preview-dev.tabler.io/static/logo.svg"
+  ),
+  button_386("launch", "Go!", class = "btn-lg")
+ )
+
+ server <- function(input, output, session) {
+   observe(print(input$toast))
+   observeEvent(input$launch, {
+     removeNotification("notif")
+     show_toast_386(
+       "toast",
+       options = list(
+         animation = FALSE,
+         delay = 3000
+       )
+     )
+   })
+
+   observeEvent(input$toast, {
+     showNotification(
+       id = "notif",
+       "Toast was closed",
+       type = "warning",
+       duration = 1,
+
+     )
+   })
+ }
+
+ shinyApp(ui, server)
+}
+
+
+
- - - + + diff --git a/reference/tab_panel_386.html b/reference/tab_panel_386.html index 7bc6558..6cda842 100644 --- a/reference/tab_panel_386.html +++ b/reference/tab_panel_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 tab panel — tab_panel_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 tab panel — tab_panel_386 • shiny386 + + - - - - -
-
- -
- -
+
@@ -120,58 +52,53 @@

Create a Bootstrap 386 tab panel

Create a Bootstrap 386 tab panel

-
tab_panel_386(title, ..., value = title, icon = NULL)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
title

Display title for tab

...

UI elements to include within the tab

value

The value that should be sent when tabsetPanel reports +

+
tab_panel_386(title, ..., value = title, icon = NULL)
+
+ +
+

Arguments

+
title
+

Display title for tab

+ + +
...
+

UI elements to include within the tab

+ + +
value
+

The value that should be sent when tabsetPanel reports that this tab is selected. If omitted and tabsetPanel has an -id, then the title will be used..

icon

Optional icon to appear on the tab. This attribute is only -valid when using a tabPanel within a navbarPage().

+id, then the title will be used.

+
icon
+

Optional icon to appear on the tab. This attribute is only +valid when using a tabPanel within a navbarPage().

+ +
+
+
- - - + + diff --git a/reference/tabset_panel_386.html b/reference/tabset_panel_386.html index 7a6e4ef..7b1cfe6 100644 --- a/reference/tabset_panel_386.html +++ b/reference/tabset_panel_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 tabset panel — tabset_panel_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 tabset panel — tabset_panel_386 • shiny386 + + - - - - -
-
- -
- -
+
@@ -120,92 +52,96 @@

Create a Bootstrap 386 tabset panel

Create a Bootstrap 386 tabset panel

-
tabset_panel_386(
-  ...,
-  id = NULL,
-  selected = NULL,
-  type = c("tabs", "pills"),
-  position = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
...

tabPanel() elements to include in the tabset

id

If provided, you can use input$id in your +

+
tabset_panel_386(
+  ...,
+  id = NULL,
+  selected = NULL,
+  type = c("tabs", "pills"),
+  position = NULL
+)
+
+ +
+

Arguments

+
...
+

tabPanel() elements to include in the tabset

+ + +
id
+

If provided, you can use input$id in your server logic to determine which of the current tabs is active. The value will correspond to the value argument that is passed to -tabPanel().

selected

The value (or, if none was supplied, the title) +tabPanel().

+ + +
selected
+

The value (or, if none was supplied, the title) of the tab that should be selected by default. If NULL, the first -tab will be selected.

type

Use "tabs" for the standard look; Use "pills" for a more plain -look where tabs are selected using a background fill color.

position

This argument is deprecated; it has been discontinued in -Bootstrap 3.

- - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - tabset_panel_386( - id = "tabset", - selected = "Tab 2", - tabPanel("Tab 1", "Content 1"), - tabPanel("Tab 2", "Content 2") - ) - ) - - server <- function(input, output, session) { - observe(print(input$tabset)) - } - shinyApp(ui, server) - -}
+tab will be selected.

+ + +
type
+
"tabs"
+

Standard tab look

+ +
"pills"
+

Selected tabs use the background fill color

+ +
"hidden"
+

Hides the selectable tabs. Use type = "hidden" in +conjunction with tabPanelBody() and updateTabsetPanel() to control the +active tab via other input controls. (See example below)

+ + +
+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  tabset_panel_386(
+    id = "tabset",
+    selected = "Tab 2",
+    tabPanel("Tab 1", "Content 1"),
+    tabPanel("Tab 2", "Content 2")
+  )
+ )
+
+ server <- function(input, output, session) {
+   observe(print(input$tabset))
+ }
+ shinyApp(ui, server)
+
+}
+
+
+
- - - + + diff --git a/reference/text_area_input_386.html b/reference/text_area_input_386.html index f56d944..aeb7148 100644 --- a/reference/text_area_input_386.html +++ b/reference/text_area_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 text area input — text_area_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 text area input — text_area_input_386 • shiny386 + + - - - - -
-
- -
- -
+
@@ -120,113 +52,111 @@

Create a Bootstrap 386 text area input

Create a Bootstrap 386 text area input

-
text_area_input_386(
-  inputId,
-  label,
-  value = "",
-  width = NULL,
-  height = NULL,
-  cols = NULL,
-  rows = NULL,
-  placeholder = NULL,
-  resize = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

value

Initial value.

width

The width of the input, e.g. '400px', or '100%'; -see validateCssUnit().

height

The height of the input, e.g. '400px', or '100%'; see -validateCssUnit().

cols

Value of the visible character columns of the input, e.g. 80. +

+
text_area_input_386(
+  inputId,
+  label,
+  value = "",
+  width = NULL,
+  height = NULL,
+  cols = NULL,
+  rows = NULL,
+  placeholder = NULL,
+  resize = NULL
+)
+
+ +
+

Arguments

+
inputId
+

The input slot that will be used to access the value.

+ + +
label
+

Display label for the control, or NULL for no label.

+ + +
value
+

Initial value.

+ + +
width
+

The width of the input, e.g. '400px', or '100%'; +see validateCssUnit().

+ + +
height
+

The height of the input, e.g. '400px', or '100%'; see +validateCssUnit().

+ + +
cols
+

Value of the visible character columns of the input, e.g. 80. This argument will only take effect if there is not a CSS width rule defined for this element; such a rule could come from the width argument of this function or from a containing page layout such as -fluidPage().

rows

The value of the visible character rows of the input, e.g. 6. -If the height argument is specified, height will take precedence in the -browser's rendering.

placeholder

A character string giving the user a hint as to what can -be entered into the control. Internet Explorer 8 and 9 do not support this -option.

resize

Which directions the textarea box can be resized. Can be one of -"both", "none", "vertical", and "horizontal". The default, NULL, -will use the client browser's default setting for resizing textareas.

+fluidPage().

+ +
rows
+

The value of the visible character rows of the input, e.g. 6. +If the height argument is specified, height will take precedence in the +browser's rendering.

-

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - ui <- page_386( - textAreaInput("caption", "Caption", "Data Summary"), - verbatimTextOutput("value") - ) +
placeholder
+

A character string giving the user a hint as to what can +be entered into the control. Internet Explorer 8 and 9 do not support this +option.

- server <- function(input, output, session) { - output$value <- renderText({ input$caption }) - } - shinyApp(ui, server) -}
+
resize
+

Which directions the textarea box can be resized. Can be one of +"both", "none", "vertical", and "horizontal". The default, NULL, +will use the client browser's default setting for resizing textareas.

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  textAreaInput("caption", "Caption", "Data Summary"),
+  verbatimTextOutput("value")
+ )
+
+ server <- function(input, output, session) {
+  output$value <- renderText({ input$caption })
+ }
+ shinyApp(ui, server)
+
+}
+
+
+
- - - + + diff --git a/reference/text_input_386.html b/reference/text_input_386.html index 2da9fd7..93f97a3 100644 --- a/reference/text_input_386.html +++ b/reference/text_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 text input — text_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 text input — text_input_386 • shiny386 + + - - - - -
-
- -
- -
+
@@ -120,78 +52,76 @@

Create a Bootstrap 386 text input

Create a Bootstrap 386 text input

-
text_input_386(inputId, label, value = "", width = NULL, placeholder = NULL)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

value

Initial value.

width

The width of the input, e.g. '400px', or '100%'; -see validateCssUnit().

placeholder

A character string giving the user a hint as to what can -be entered into the control. Internet Explorer 8 and 9 do not support this -option.

+
+
text_input_386(inputId, label, value = "", width = NULL, placeholder = NULL)
+
+ +
+

Arguments

+
inputId
+

The input slot that will be used to access the value.

+ + +
label
+

Display label for the control, or NULL for no label.

+ +
value
+

Initial value.

-

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - ui <- page_386( - textInput("caption", "Caption", "Data Summary"), - verbatimTextOutput("value") - ) +
width
+

The width of the input, e.g. '400px', or '100%'; +see validateCssUnit().

- server <- function(input, output, session) { - output$value <- renderText({ input$caption }) - } - shinyApp(ui, server) -}
+
placeholder
+

A character string giving the user a hint as to what can +be entered into the control. Internet Explorer 8 and 9 do not support this +option.

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  textInput("caption", "Caption", "Data Summary"),
+  verbatimTextOutput("value")
+ )
+
+ server <- function(input, output, session) {
+  output$value <- renderText({ input$caption })
+ }
+ shinyApp(ui, server)
+
+}
+
+
+
- - - + + diff --git a/reference/toast_386.html b/reference/toast_386.html index d5c7260..5eba4fb 100644 --- a/reference/toast_386.html +++ b/reference/toast_386.html @@ -1,67 +1,12 @@ - - - - - - - -Create a Bootstrap 386 toast — toast_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create a Bootstrap 386 toast — toast_386 • shiny386 - - - - + + -
-
- -
- -
+
@@ -120,65 +52,64 @@

Create a Bootstrap 386 toast

Display user feedback

-
toast_386(id, title = NULL, subtitle = NULL, ..., img = NULL)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
id

Unique toast id.

title

Toast title.

subtitle

Toast subtitle.

...

Toast content.

img

Toast image.

- -

Value

- -

A toast

-

See also

- - +
+
toast_386(id, title = NULL, subtitle = NULL, ..., img = NULL)
+
+ +
+

Arguments

+
id
+

Unique toast id.

+ + +
title
+

Toast title.

+ + +
subtitle
+

Toast subtitle.

+ + +
...
+

Toast content.

+ + +
img
+

Toast image.

+ +
+
+

Value

+ + +

A toast

+
+
+

See also

+ +
+
- - - + + diff --git a/reference/toggle_input_386.html b/reference/toggle_input_386.html index 42175c7..c9cdbb4 100644 --- a/reference/toggle_input_386.html +++ b/reference/toggle_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Custom Bootstrap 386 switch input — toggle_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Custom Bootstrap 386 switch input — toggle_input_386 • shiny386 - - - - + + -
-
- -
- -
+
@@ -120,77 +52,79 @@

Custom Bootstrap 386 switch input

Similar to the shiny checkbox

-
toggle_input_386(inputId, label, value = FALSE, width = NULL)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

value

Initial value (TRUE or FALSE).

width

The width of the input, e.g. '400px', or '100%'; -see validateCssUnit().

- -

Value

- -

A toggle input tag.

-

See also

- - - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - toggle_input_386("toggle", "Toggle me", TRUE), - verbatimTextOutput("val") - ) - - server <- function(input, output, session) { - output$val <- renderPrint(input$toggle) - } - shinyApp(ui, server) -}
+
+
toggle_input_386(inputId, label, value = FALSE, width = NULL)
+
+ +
+

Arguments

+
inputId
+

The input slot that will be used to access the value.

+ + +
label
+

Display label for the control, or NULL for no label.

+ + +
value
+

Initial value (TRUE or FALSE).

+ + +
width
+

The width of the input, e.g. '400px', or '100%'; +see validateCssUnit().

+ +
+
+

Value

+ + +

A toggle input tag.

+
+
+

See also

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  toggle_input_386("toggle", "Toggle me", TRUE),
+  verbatimTextOutput("val")
+ )
+
+ server <- function(input, output, session) {
+   output$val <- renderPrint(input$toggle)
+ }
+ shinyApp(ui, server)
+}
+
+
+
- - - + + diff --git a/reference/update_checkbox_group_input_386.html b/reference/update_checkbox_group_input_386.html index 5da7789..cd23208 100644 --- a/reference/update_checkbox_group_input_386.html +++ b/reference/update_checkbox_group_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Change the value of a checkbox group input on the client — update_checkbox_group_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Change the value of a checkbox group input on the client — update_checkbox_group_input_386 • shiny386 - - + + - - -
-
- -
- -
+
@@ -120,58 +52,46 @@

Change the value of a checkbox group input on the client

Change the value of a checkbox group input on the client

-
update_checkbox_group_input_386(
-  session,
-  inputId,
-  label = NULL,
-  choices = NULL,
-  selected = NULL,
-  choiceNames = NULL,
-  choiceValues = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
session

The session object passed to function given to shinyServer.

inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

choices

List of values to show checkboxes for. If elements of the list +

+
update_checkbox_group_input_386(
+  session,
+  inputId,
+  label = NULL,
+  choices = NULL,
+  selected = NULL,
+  choiceNames = NULL,
+  choiceValues = NULL
+)
+
+ +
+

Arguments

+
session
+

The session object passed to function given to shinyServer.

+ + +
inputId
+

The input slot that will be used to access the value.

+ + +
label
+

Display label for the control, or NULL for no label.

+ + +
choices
+

List of values to show checkboxes for. If elements of the list are named then that name rather than the value is displayed to the user. If this argument is provided, then choiceNames and choiceValues must not be provided, and vice-versa. The values should be strings; other -types (such as logicals and numbers) will be coerced to strings.

selected

The values that should be initially selected, if any.

choiceNames

List of names and values, respectively, -that are displayed to the user in the app and correspond to the each -choice (for this reason, choiceNames and choiceValues -must have the same length). If either of these arguments is -provided, then the other must be provided and choices -must not be provided. The advantage of using both of these over -a named list for choices is that choiceNames allows any -type of UI object to be passed through (tag objects, icons, HTML code, -...), instead of just simple text. See Examples.

choiceValues

List of names and values, respectively, +types (such as logicals and numbers) will be coerced to strings.

+ + +
selected
+

The values that should be initially selected, if any.

+ + +
choiceNames, choiceValues
+

List of names and values, respectively, that are displayed to the user in the app and correspond to the each choice (for this reason, choiceNames and choiceValues must have the same length). If either of these arguments is @@ -179,69 +99,68 @@

Arg must not be provided. The advantage of using both of these over a named list for choices is that choiceNames allows any type of UI object to be passed through (tag objects, icons, HTML code, -...), instead of just simple text. See Examples.

- -

See also

- - - -

Examples

-
if (interactive()) { - - ui <- page_386( - p("The first radio button group controls the second"), - checkbox_group_input_386("inCheckboxGroup", "Input radio buttons", - c("Item A", "Item B", "Item C")), - checkbox_group_input_386("inCheckboxGroup2", "Input radio buttons 2", - c("Item A", "Item B", "Item C")) - ) - - server <- function(input, output, session) { - observe({ - x <- input$inCheckboxGroup - - # Can use character(0) to remove all choices - if (is.null(x)) - x <- character(0) - - # Can also set the label and select items - update_checkbox_group_input_386(session, "inCheckboxGroup2", - label = paste("Checkboxgroup label", length(x)), - choices = x, - selected = x - ) - }) - } - - shinyApp(ui, server) -}
+...), instead of just simple text. See Examples.

+ +
+ + +
+

Examples

+
if (interactive()) {
+
+ ui <- page_386(
+   p("The first radio button group controls the second"),
+   checkbox_group_input_386("inCheckboxGroup", "Input radio buttons",
+     c("Item A", "Item B", "Item C")),
+   checkbox_group_input_386("inCheckboxGroup2", "Input radio buttons 2",
+     c("Item A", "Item B", "Item C"))
+ )
+
+ server <- function(input, output, session) {
+   observe({
+    x <- input$inCheckboxGroup
+
+    # Can use character(0) to remove all choices
+    if (is.null(x))
+      x <- character(0)
+
+    # Can also set the label and select items
+    update_checkbox_group_input_386(session, "inCheckboxGroup2",
+                             label = paste("Checkboxgroup label", length(x)),
+                             choices = x,
+                             selected = x
+    )
+   })
+ }
+
+ shinyApp(ui, server)
+}
+
+
+
- - - + + diff --git a/reference/update_checkbox_input_386.html b/reference/update_checkbox_input_386.html index 6ed4ff4..9470dab 100644 --- a/reference/update_checkbox_input_386.html +++ b/reference/update_checkbox_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Update <a href='checkbox_input_386.html'>checkbox_input_386</a> on the client — update_checkbox_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Update checkbox_input_386 on the client — update_checkbox_input_386 • shiny386 - - + + - - -
-
- -
- -
+
-

Update checkbox_input_386 on the client

+

Update checkbox_input_386 on the client

+
+ +
+
update_checkbox_input_386(session, inputId, label = NULL, value = NULL)
-
update_checkbox_input_386(session, inputId, label = NULL, value = NULL)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
session

The session object passed to function given to -shinyServer.

inputId

The id of the input object.

label

The label to set for the input object.

value

The value to set for the input object.

- - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - button_386("update", "Go!", class = "btn-lg"), - checkbox_input_386("check", "Checked", value = TRUE) - ) - - server <- function(input, output, session) { - observe(print(input$check)) - observeEvent(input$update, { - update_checkbox_input_386( - session, - "toggle", - value = !input$check - ) - }) - } - - shinyApp(ui, server) -}
+
+

Arguments

+
session
+

The session object passed to function given to +shinyServer. Default is getDefaultReactiveDomain().

+ + +
inputId
+

The id of the input object.

+ + +
label
+

The label to set for the input object.

+ + +
value
+

Initial value (TRUE or FALSE).

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  button_386("update", "Go!", class = "btn-lg"),
+  checkbox_input_386("check", "Checked", value = TRUE)
+ )
+
+ server <- function(input, output, session) {
+   observe(print(input$check))
+   observeEvent(input$update, {
+     update_checkbox_input_386(
+       session,
+       "toggle",
+       value = !input$check
+     )
+   })
+ }
+
+ shinyApp(ui, server)
+}
+
+
+
-
- +
- - + + diff --git a/reference/update_progress_386.html b/reference/update_progress_386.html index 6fcd6e0..6527c9b 100644 --- a/reference/update_progress_386.html +++ b/reference/update_progress_386.html @@ -1,67 +1,12 @@ - - - - - - - -Update a <a href='progress_386.html'>progress_386</a> on the client — update_progress_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Update a progress_386 on the client — update_progress_386 • shiny386 - - + + - - -
-
- -
- -
+
-

Update a progress_386 on the client

+

Update a progress_386 on the client

+
+ +
+
update_progress_386(id, value, session = shiny::getDefaultReactiveDomain())
-
update_progress_386(id, value, session = shiny::getDefaultReactiveDomain())
- -

Arguments

- - - - - - - - - - - - - - -
id

Progress unique id.

value

New value.

session

Shiny session object.

- - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - ui <- page_386( - button_386("update", "Update"), - br(), - progress_386(id = "progress1", 12) - ) - - server <- function(input, output, session) { - observeEvent(input$update, { - update_progress_386( - id = "progress1", - sample(1:100, 1) - ) - }) - } - shinyApp(ui, server) -}
+
+

Arguments

+
id
+

Progress unique id.

+ + +
value
+

New value.

+ + +
session
+

Shiny session object.

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+ ui <- page_386(
+  button_386("update", "Update"),
+  br(),
+  progress_386(id = "progress1", 12)
+ )
+
+ server <- function(input, output, session) {
+   observeEvent(input$update, {
+     update_progress_386(
+       id = "progress1",
+       sample(1:100, 1)
+     )
+   })
+ }
+ shinyApp(ui, server)
+}
+
+
+
-
- +
- - + + diff --git a/reference/update_radio_input_386.html b/reference/update_radio_input_386.html index 31eb52c..f156b06 100644 --- a/reference/update_radio_input_386.html +++ b/reference/update_radio_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Change the value of a radio input on the client — update_radio_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Change the value of a radio input on the client — update_radio_input_386 • shiny386 - - + + - - -
-
- -
- -
+
@@ -120,125 +52,112 @@

Change the value of a radio input on the client

Change the value of a radio input on the client

-
update_radio_input_386(
-  session,
-  inputId,
-  label = NULL,
-  choices = NULL,
-  selected = NULL,
-  choiceNames = NULL,
-  choiceValues = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
session

The session object passed to function given to shinyServer.

inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

choices

List of values to select from (if elements of the list are +

+
update_radio_input_386(
+  session,
+  inputId,
+  label = NULL,
+  choices = NULL,
+  selected = NULL,
+  choiceNames = NULL,
+  choiceValues = NULL
+)
+
+ +
+

Arguments

+
session
+

The session object passed to function given to shinyServer.

+ + +
inputId
+

The input slot that will be used to access the value.

+ + +
label
+

Display label for the control, or NULL for no label.

+ + +
choices
+

List of values to select from (if elements of the list are named then that name rather than the value is displayed to the user). If -this argument is provided, then choiceNames and choiceValues -must not be provided, and vice-versa. The values should be strings; other -types (such as logicals and numbers) will be coerced to strings.

selected

The initially selected value (if not specified then defaults -to the first value)

choiceNames

List of names and values, respectively, that -are displayed to the user in the app and correspond to the each choice (for -this reason, choiceNames and choiceValues must have the same -length). If either of these arguments is provided, then the other -must be provided and choices must not be provided. The -advantage of using both of these over a named list for choices is -that choiceNames allows any type of UI object to be passed through -(tag objects, icons, HTML code, ...), instead of just simple text. See -Examples.

choiceValues

List of names and values, respectively, that +this argument is provided, then choiceNames and choiceValues must not +be provided, and vice-versa. The values should be strings; other types +(such as logicals and numbers) will be coerced to strings.

+ + +
selected
+

The initially selected value. If not specified, then it +defaults to the first item in choices. To start with no items selected, +use character(0).

+ + +
choiceNames, choiceValues
+

List of names and values, respectively, that are displayed to the user in the app and correspond to the each choice (for -this reason, choiceNames and choiceValues must have the same -length). If either of these arguments is provided, then the other -must be provided and choices must not be provided. The -advantage of using both of these over a named list for choices is -that choiceNames allows any type of UI object to be passed through -(tag objects, icons, HTML code, ...), instead of just simple text. See -Examples.

- -

See also

- - - -

Examples

-
if (interactive()) { - - ui <- page_386( - p("The first radio button group controls the second"), - radio_input_386("inRadioButtons", "Input radio buttons", - c("Item A", "Item B", "Item C")), - radio_input_386("inRadioButtons2", "Input radio buttons 2", - c("Item A", "Item B", "Item C")) - ) - - server <- function(input, output, session) { - observe({ - x <- input$inRadioButtons - - # Can also set the label and select items - update_radio_input_386(session, "inRadioButtons2", - label = paste("radioButtons label", x), - choices = x, - selected = x - ) - }) - } - - shinyApp(ui, server) -}
+this reason, choiceNames and choiceValues must have the same length). +If either of these arguments is provided, then the other must be provided +and choices must not be provided. The advantage of using both of these +over a named list for choices is that choiceNames allows any type of UI +object to be passed through (tag objects, icons, HTML code, ...), instead +of just simple text. See Examples.

+ +
+
+

See also

+ +
+ +
+

Examples

+
if (interactive()) {
+
+ ui <- page_386(
+   p("The first radio button group controls the second"),
+   radio_input_386("inRadioButtons", "Input radio buttons",
+     c("Item A", "Item B", "Item C")),
+   radio_input_386("inRadioButtons2", "Input radio buttons 2",
+     c("Item A", "Item B", "Item C"))
+ )
+
+ server <- function(input, output, session) {
+   observe({
+     x <- input$inRadioButtons
+
+    # Can also set the label and select items
+    update_radio_input_386(session, "inRadioButtons2",
+      label = paste("radioButtons label", x),
+      choices = x,
+      selected = x
+    )
+  })
+ }
+
+ shinyApp(ui, server)
+}
+
+
+
- - - + + diff --git a/reference/update_select_input_386.html b/reference/update_select_input_386.html index 86940da..808a358 100644 --- a/reference/update_select_input_386.html +++ b/reference/update_select_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Update a Bootstrap 386 select input on the client — update_select_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Update a Bootstrap 386 select input on the client — update_select_input_386 • shiny386 - + + - - - -
-
- -
- -
+
@@ -120,105 +52,103 @@

Update a Bootstrap 386 select input on the client

Update a Bootstrap 386 select input on the client

-
update_select_input_386(
-  session,
-  inputId,
-  label = NULL,
-  choices = NULL,
-  selected = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
session

The session object passed to function given to -shinyServer.

inputId

The id of the input object.

label

The label to set for the input object.

choices

List of values to select from. If elements of the list are +

+
update_select_input_386(
+  session = getDefaultReactiveDomain(),
+  inputId,
+  label = NULL,
+  choices = NULL,
+  selected = NULL
+)
+
+ +
+

Arguments

+
session
+

The session object passed to function given to +shinyServer. Default is getDefaultReactiveDomain().

+ + +
inputId
+

The id of the input object.

+ + +
label
+

The label to set for the input object.

+ + +
choices
+

List of values to select from. If elements of the list are named, then that name --- rather than the value --- is displayed to the user. It's also possible to group related inputs by providing a named list whose elements are (either named or unnamed) lists, vectors, or factors. In this case, the outermost names will be used as the group labels (leveraging the <optgroup> HTML tag) for the elements in the respective sublist. See -the example section for a small demo of this feature.

selected

The initially selected value (or multiple values if multiple = TRUE). If not specified then defaults to the first value for -single-select lists and no values for multiple select lists.

- - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - p("The radio group controls the select input"), - radio_input_386("inCheckboxGroup", "Input checkbox", - c("Item A", "Item B", "Item C")), - select_input_386("inSelect", "Select input", - c("Item A", "Item B", "Item C")) - ) - - server <- function(input, output, session) { - observe({ - x <- input$inCheckboxGroup - - # Can use character(0) to remove all choices - if (is.null(x)) - x <- character(0) - - # Can also set the label and select items - update_select_input_386(session, "inSelect", - label = paste("Select input label", length(x)), - choices = x, - selected = tail(x, 1) - ) - }) - } - - shinyApp(ui, server) -}
+the example section for a small demo of this feature.

+ + +
selected
+

The initially selected value (or multiple values if multiple = TRUE). If not specified then defaults to the first value for +single-select lists and no values for multiple select lists.

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  p("The radio group controls the select input"),
+  radio_input_386("inCheckboxGroup", "Input checkbox",
+                     c("Item A", "Item B", "Item C")),
+  select_input_386("inSelect", "Select input",
+             c("Item A", "Item B", "Item C"))
+ )
+
+ server <- function(input, output, session) {
+   observe({
+     x <- input$inCheckboxGroup
+
+     # Can use character(0) to remove all choices
+     if (is.null(x))
+       x <- character(0)
+
+     # Can also set the label and select items
+     update_select_input_386(session, "inSelect",
+                       label = paste("Select input label", length(x)),
+                       choices = x,
+                       selected = tail(x, 1)
+     )
+   })
+ }
+
+ shinyApp(ui, server)
+}
+
+
+
- - - + + diff --git a/reference/update_tabset_panel_386.html b/reference/update_tabset_panel_386.html index e34efa0..7567121 100644 --- a/reference/update_tabset_panel_386.html +++ b/reference/update_tabset_panel_386.html @@ -1,67 +1,12 @@ - - - - - - - -Update a Bootstrap 386 tabset panel on the client — update_tabset_panel_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Update a Bootstrap 386 tabset panel on the client — update_tabset_panel_386 • shiny386 - - + + - - -
-
- -
- -
+
@@ -120,81 +52,85 @@

Update a Bootstrap 386 tabset panel on the client

Update a Bootstrap 386 tabset panel on the client

-
update_tabset_panel_386(session, inputId, selected = NULL)
- -

Arguments

- - - - - - - - - - - - - - -
session

The session object passed to function given to -shinyServer.

inputId

The id of the tabsetPanel, navlistPanel, -or navbarPage object.

selected

The name of the tab to make active.

- - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386(sidebarLayout( - sidebarPanel( - radio_input_386("controller", "Controller", choices = c(1, 2, 3)) - ), - mainPanel( - tabset_panel_386(id = "inTabset", - tab_panel_386(title = "Panel 1", value = "panel1", "Panel 1 content"), - tab_panel_386(title = "Panel 2", value = "panel2", "Panel 2 content"), - tab_panel_386(title = "Panel 3", value = "panel3", "Panel 3 content") - ) - ) - )) - - server <- function(input, output, session) { - observeEvent(input$controller, { - update_tabset_panel_386(session, "inTabset", - selected = paste0("panel", input$controller) - ) - }) - } - - shinyApp(ui, server) -}
+
+
update_tabset_panel_386(
+  session = getDefaultReactiveDomain(),
+  inputId,
+  selected = NULL
+)
+
+ +
+

Arguments

+
session
+

The session object passed to function given to +shinyServer. Default is getDefaultReactiveDomain().

+ + +
inputId
+

The id of the tabsetPanel, navlistPanel, +or navbarPage object.

+ + +
selected
+

The value (or, if none was supplied, the title) +of the tab that should be selected by default. If NULL, the first +tab will be selected.

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(sidebarLayout(
+ sidebarPanel(
+   radio_input_386("controller", "Controller", choices = c(1, 2, 3))
+ ),
+ mainPanel(
+   tabset_panel_386(id = "inTabset",
+               tab_panel_386(title = "Panel 1", value = "panel1", "Panel 1 content"),
+               tab_panel_386(title = "Panel 2", value = "panel2", "Panel 2 content"),
+               tab_panel_386(title = "Panel 3", value = "panel3", "Panel 3 content")
+   )
+ )
+ ))
+
+ server <- function(input, output, session) {
+   observeEvent(input$controller, {
+     update_tabset_panel_386(session, "inTabset",
+                       selected = paste0("panel", input$controller)
+     )
+   })
+ }
+
+ shinyApp(ui, server)
+}
+
+
+
- - - + + diff --git a/reference/update_text_area_input_386.html b/reference/update_text_area_input_386.html index ff24ecc..c39325b 100644 --- a/reference/update_text_area_input_386.html +++ b/reference/update_text_area_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Update a Bootstrap 386 text area input on the client — update_text_area_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Update a Bootstrap 386 text area input on the client — update_text_area_input_386 • shiny386 - + + - - - -
-
- -
- -
+
@@ -120,66 +52,63 @@

Update a Bootstrap 386 text area input on the client

Update a Bootstrap 386 text area input on the client

-
update_text_area_input_386(
-  session,
-  inputId,
-  label = NULL,
-  value = NULL,
-  placeholder = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
session

The session object passed to function given to -shinyServer.

inputId

The id of the input object.

label

The label to set for the input object.

value

The value to set for the input object.

placeholder

The placeholder to set for the input object.

+
+
update_text_area_input_386(
+  session = getDefaultReactiveDomain(),
+  inputId,
+  label = NULL,
+  value = NULL,
+  placeholder = NULL
+)
+
+ +
+

Arguments

+
session
+

The session object passed to function given to +shinyServer. Default is getDefaultReactiveDomain().

+
inputId
+

The id of the input object.

+ + +
label
+

The label to set for the input object.

+ + +
value
+

Initial value.

+ + +
placeholder
+

A character string giving the user a hint as to what can +be entered into the control. Internet Explorer 8 and 9 do not support this +option.

+ +
+
+
- - - + + diff --git a/reference/update_text_input_386.html b/reference/update_text_input_386.html index a7315c0..7b938cb 100644 --- a/reference/update_text_input_386.html +++ b/reference/update_text_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Update a Bootstrap 386 text input on the client — update_text_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Update a Bootstrap 386 text input on the client — update_text_input_386 • shiny386 - + + - - - -
-
- -
- -
+
@@ -120,66 +52,63 @@

Update a Bootstrap 386 text input on the client

Update a Bootstrap 386 text input on the client

-
update_text_input_386(
-  session,
-  inputId,
-  label = NULL,
-  value = NULL,
-  placeholder = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
session

The session object passed to function given to -shinyServer.

inputId

The id of the input object.

label

The label to set for the input object.

value

The value to set for the input object.

placeholder

The placeholder to set for the input object.

+
+
update_text_input_386(
+  session = getDefaultReactiveDomain(),
+  inputId,
+  label = NULL,
+  value = NULL,
+  placeholder = NULL
+)
+
+ +
+

Arguments

+
session
+

The session object passed to function given to +shinyServer. Default is getDefaultReactiveDomain().

+
inputId
+

The id of the input object.

+ + +
label
+

The label to set for the input object.

+ + +
value
+

Initial value.

+ + +
placeholder
+

A character string giving the user a hint as to what can +be entered into the control. Internet Explorer 8 and 9 do not support this +option.

+ +
+
+
- - - + + diff --git a/reference/update_toggle_input_386.html b/reference/update_toggle_input_386.html index e5068e9..7d8eebb 100644 --- a/reference/update_toggle_input_386.html +++ b/reference/update_toggle_input_386.html @@ -1,67 +1,12 @@ - - - - - - - -Update <a href='toggle_input_386.html'>toggle_input_386</a> on the client — update_toggle_input_386 • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Update toggle_input_386 on the client — update_toggle_input_386 • shiny386 - - + + - - -
-
- -
- -
+
-

Update toggle_input_386 on the client

+

Update toggle_input_386 on the client

+
+ +
+
update_toggle_input_386(session, inputId, label = NULL, value = NULL)
-
update_toggle_input_386(session, inputId, label = NULL, value = NULL)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
session

The session object passed to function given to -shinyServer.

inputId

The id of the input object.

label

The label to set for the input object.

value

The value to set for the input object.

- - -

Examples

-
if (interactive()) { - library(shiny) - library(shiny386) - - ui <- page_386( - button_386("update", "Go!", class = "btn-lg"), - toggle_input_386("toggle", "Switch", value = TRUE) - ) - - server <- function(input, output, session) { - observe(print(input$toggle)) - observeEvent(input$update, { - update_toggle_input_386( - session, - "toggle", - value = !input$toggle - ) - }) - } - - shinyApp(ui, server) -}
+
+

Arguments

+
session
+

The session object passed to function given to +shinyServer. Default is getDefaultReactiveDomain().

+ + +
inputId
+

The id of the input object.

+ + +
label
+

The label to set for the input object.

+ + +
value
+

Initial value (TRUE or FALSE).

+ +
+ +
+

Examples

+
if (interactive()) {
+ library(shiny)
+ library(shiny386)
+
+ ui <- page_386(
+  button_386("update", "Go!", class = "btn-lg"),
+  toggle_input_386("toggle", "Switch", value = TRUE)
+ )
+
+ server <- function(input, output, session) {
+   observe(print(input$toggle))
+   observeEvent(input$update, {
+     update_toggle_input_386(
+       session,
+       "toggle",
+       value = !input$toggle
+     )
+   })
+ }
+
+ shinyApp(ui, server)
+}
+
+
+
-
- +
- - + + diff --git a/reference/use_bs4_deps.html b/reference/use_bs4_deps.html index 3d134d0..cdd206b 100644 --- a/reference/use_bs4_deps.html +++ b/reference/use_bs4_deps.html @@ -1,67 +1,12 @@ - - - - - - - -Create shiny386 dependencies — use_bs4_deps • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Create shiny386 dependencies — use_bs4_deps • shiny386 - - + + - - -
-
- -
- -
+
@@ -120,46 +52,42 @@

Create shiny386 dependencies

Add all necessary dependencies so that shiny386 renders well

-
use_bs4_deps(tag)
- -

Arguments

- - - - - - -
tag

Tag on which to add dependencies. We usually target the body.

+
+
use_bs4_deps(tag)
+
-

See also

+
+

Arguments

+
tag
+

Tag on which to add dependencies. We usually target the body.

- +
+
+

See also

+ +
+
- - - + + diff --git a/reference/validate_progress_value.html b/reference/validate_progress_value.html index c01f2ea..19c8103 100644 --- a/reference/validate_progress_value.html +++ b/reference/validate_progress_value.html @@ -1,67 +1,12 @@ - - - - - - - -Validate a <a href='progress_386.html'>progress_386</a> value — validate_progress_value • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Validate a progress_386 value — validate_progress_value • shiny386 - + + - - - -
-
- -
- -
+
-

Validate a progress_386 value

+

Validate a progress_386 value

-
validate_progress_value(value)
+
+
validate_progress_value(value)
+
-

Arguments

- - - - - - -
value

Value to validate.

+
+

Arguments

+
value
+

Value to validate.

-

Value

+
+
+

Value

+ -

An error is raised if the value does not met expectations.

+

An error is raised if the value does not met expectations.

+
+
-
- +
- - + + diff --git a/reference/validate_status.html b/reference/validate_status.html index bf2f10c..5dd5110 100644 --- a/reference/validate_status.html +++ b/reference/validate_status.html @@ -1,67 +1,12 @@ - - - - - - - -Validation function — validate_status • shiny386 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Validation function — validate_status • shiny386 - - + + - - -
-
- -
- -
+
@@ -120,51 +52,52 @@

Validation function

Validate the status of a Bootstrap 386 element.

-
validate_status(status)
+
+
validate_status(status)
+
-

Arguments

- - - - - - -
status

Color to validate.

+
+

Arguments

+
status
+

Color to validate.

-

Value

+
+
+

Value

+ -

TRUE if the test pass.

+

TRUE if the test pass.

+
-

Examples

-
if (FALSE) { - validate_status("danger") - validate_status("maroon") -}
+
+

Examples

+
if (FALSE) {
+ validate_status("danger")
+ validate_status("maroon")
+}
+
+
+
- - - + + diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..244f869 --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,135 @@ + + + + /404.html + + + /LICENSE-text.html + + + /LICENSE.html + + + /authors.html + + + /index.html + + + /news/index.html + + + /reference/badge_386.html + + + /reference/button_386.html + + + /reference/card.html + + + /reference/checkbox_group_input_386.html + + + /reference/checkbox_input_386.html + + + /reference/create_checkbox_tag.html + + + /reference/dropdown.html + + + /reference/index.html + + + /reference/jumbotron_386.html + + + /reference/list_group_386.html + + + /reference/list_group_item_386.html + + + /reference/modal.html + + + /reference/navbar.html + + + /reference/page_386.html + + + /reference/pipe.html + + + /reference/progress_386.html + + + /reference/radio_input_386.html + + + /reference/select_input_386.html + + + /reference/shiny386.html + + + /reference/show_toast_386.html + + + /reference/tab_panel_386.html + + + /reference/tabset_panel_386.html + + + /reference/text_area_input_386.html + + + /reference/text_input_386.html + + + /reference/toast_386.html + + + /reference/toggle_input_386.html + + + /reference/update_checkbox_group_input_386.html + + + /reference/update_checkbox_input_386.html + + + /reference/update_progress_386.html + + + /reference/update_radio_input_386.html + + + /reference/update_select_input_386.html + + + /reference/update_tabset_panel_386.html + + + /reference/update_text_area_input_386.html + + + /reference/update_text_input_386.html + + + /reference/update_toggle_input_386.html + + + /reference/use_bs4_deps.html + + + /reference/validate_progress_value.html + + + /reference/validate_status.html + +