|
|
|
|
|
|
|
|
resize = NULL, |
|
|
resize = NULL, |
|
|
is_code = TRUE |
|
|
is_code = TRUE |
|
|
) { |
|
|
) { |
|
|
`%AND%` <- getFromNamespace("%AND%", "shiny") |
|
|
|
|
|
|
|
|
|
|
|
value <- shiny::restoreInput(id = inputId, default = value) |
|
|
value <- shiny::restoreInput(id = inputId, default = value) |
|
|
|
|
|
|
|
|
if (!is.null(resize)) { |
|
|
if (!is.null(resize)) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shiny::div( |
|
|
shiny::div( |
|
|
class = "form-group shiny-input-container", |
|
|
class = "form-group shiny-input-container", |
|
|
label %AND% shiny::tags$label(label, `for` = inputId), |
|
|
|
|
|
|
|
|
tags$label(label, `for` = inputId), |
|
|
style = if (!parent_style %in% c(" ", "", " ")) parent_style, |
|
|
style = if (!parent_style %in% c(" ", "", " ")) parent_style, |
|
|
shiny::tags$textarea( |
|
|
shiny::tags$textarea( |
|
|
id = inputId, |
|
|
id = inputId, |
|
|
|
|
|
|
|
|
placeholder = NULL, |
|
|
placeholder = NULL, |
|
|
... |
|
|
... |
|
|
) { |
|
|
) { |
|
|
`%AND%` <- getFromNamespace("%AND%", "shiny") |
|
|
|
|
|
value <- shiny::restoreInput(id = inputId, default = value) |
|
|
value <- shiny::restoreInput(id = inputId, default = value) |
|
|
|
|
|
|
|
|
shiny::div( |
|
|
shiny::div( |
|
|
class = "input-group shiny-input-container", |
|
|
class = "input-group shiny-input-container", |
|
|
style = if (!is.null(width)) paste0("width: ", shiny::validateCssUnit(width), ";"), |
|
|
style = if (!is.null(width)) paste0("width: ", shiny::validateCssUnit(width), ";"), |
|
|
label %AND% shiny::tags$label(label, `for` = inputId), |
|
|
|
|
|
|
|
|
tags$label(label, `for` = inputId), |
|
|
shiny::tags$input( |
|
|
shiny::tags$input( |
|
|
id = inputId, |
|
|
id = inputId, |
|
|
type = "text", |
|
|
type = "text", |