textInputs: Tabular Text Input Controls

Description Usage Arguments Value Author(s) See Also Examples

Description

Create a table of input controls for entry of unstructured text values

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
textInput_cell(
  inputId,
  label,
  value = "",
  width = "",
  disabled = FALSE,
  hidden = FALSE,
  placeholder = NA
)

textInput_row(
  inputId,
  label,
  value = "",
  width = "",
  leftLabel = TRUE,
  disabled = FALSE,
  hidden = FALSE,
  placeholder = NA
)

Arguments

inputId

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

label

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

value

Initial value

width

The width of the input, e.g. '400px' or '100%'

leftLabel

Should the label column be the left column or the right column. TRUE puts the label on the left column.

Value

textInput_cell returns a character vector the length of inputId.

textInput_row returns a data frame with two columns and a row for every element in inputId

Author(s)

Benjamin Nutter

See Also

textInput

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
options(pixiedust_print_method = "html")
shinyApp(
  ui = shinyUI(
    wellPanel(uiOutput("sampleUI"))
  ),
  
  server = shinyServer(function(input, output){
    output$sampleUI <- 
      renderText({ 
        textInput_row(inputId = paste0("car", 1:nrow(mtcars)),
                        label = rownames(mtcars)) %>%
        dust() %>%
        print(asis = FALSE)
      })
  })
)

## End(Not run)

nutterb/shinydust documentation built on Dec. 6, 2020, 8:13 a.m.