shiny_text_input: Create universal Shiny text input binding

View source: R/shiny.R

shiny_text_inputR Documentation

Create universal Shiny text input binding

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

shiny_text_input(...)

Arguments

...

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

Examples

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"))
    )
  ))


Appsilon/shiny.semantic documentation built on April 21, 2024, 5:49 p.m.