Skip to contents

Creates a shiny.fluent textfield

Usage

make_textfield(
  i18n = character(),
  ns = character(),
  label = character(),
  id = NA_character_,
  value = NULL,
  type = NULL,
  canRevealPassword = NULL,
  width = NULL,
  min_width = NULL,
  max_width = NULL,
  margin_right = NULL,
  disabled = FALSE
)

Arguments

i18n

Translator object from shiny.i18n library

ns

Shiny namespace

label

Displayed name of the textfield (character)

id

Id of the textfield (character)

value

Value of the textfield (character)

type

Type of the input ("password" or NULL) (character)

canRevealPassword

If the type is password, show a button to reveal the password (logical)

width

Width of the dropdown, CSS code so "300px" or "100%" are accepted (character)

min_width

Min width of the textfield, same format as width (character)

max_width

Max width of the textfield, same format as width (character)

margin_right

Margin at the right side of the textfield, like "30px" (character)

disabled

Is the textfield is disabled (character)

Value

Shiny UI elements / HTML code

Examples

if (FALSE) {
make_textfield(i18n = i18n, ns = ns, label = "password", id = "password", width = "300px", type = "password", canRevealPassword = TRUE)
}