shiny_text_input: Create universal Shiny text input binding

Description Usage Arguments Examples

View source: R/shiny.R

Description

Universal binding for Shiny text input on custom user interface. Value of this input is extracted via jQuery using $().val() function. This function is just a simple binding over shiny_input. Please take a look at shiny_input documentation for more information.

Usage

1

Arguments

...

Possible arguments are the same as in shiny_input() method: input_id, shiny_ui, value. Type is already predefined as "text"

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(shiny)
library(shiny.semantic)
# Create a color picker
uirender(
  tagList(
    div(class = "ui input",
        style = NULL,
        "Color picker",
        shiny_text_input(
          "my_id",
          tags$input(type = "color", name = "my_id", value = "#ff0000"))
    )
  ))

shiny.semantic documentation built on Nov. 7, 2021, 5:07 p.m.