Learn R Programming

shiny.semantic (version 0.3.0)

uitextinput: Create Semantic UI Text Input

Description

This creates a default text input using Semantic UI. The input is available under input[[name]].

Usage

uitextinput(
  name,
  value = "",
  type = "text",
  placeholder = NULL,
  attribs = list()
)

Arguments

name

Input name. Reactive value is available under input[[name]].

value

Pass value if you want to have default text.

type

Change depending what type of input is wanted. See details for options.

placeholder

Text visible in the input when nothing is inputted.

attribs

A named list of attributes to assign to the input.

Details

The following types are allowed:

  • textThe standard input

  • textareaAn extended space for text

  • passwordA censored version of the text input

  • emailA special version of the text input specific for email addresses

  • urlA special version of the text input specific for URLs

  • telA special version of the text input specific for telephone numbers

The inputs are updateable by using updateTextInput or updateTextAreaInput if type = "textarea".

Examples

Run this code
# NOT RUN {
library(shiny)
library(shiny.semantic)

# Text input
uiinput(
  tags$label("Text input"),
  uitextinput("ex", type = "text", placeholder = "Enter Text")
)

# }

Run the code above in your browser using DataLab