text_question: Add a text question.

text_questionR Documentation

Add a text question.

Description

Add a text question.

Usage

text_question(
  question,
  label = NULL,
  textarea = TRUE,
  title_container = h5,
  width = NULL,
  height = NULL,
  placeholder = NULL
)

Arguments

question

the question text. Markdown is supported.

label

an optional label for the input element.

textarea

if TRUE (default) uses a HTML textarea element for the input. If FALSE, uses an input element.

width

the width of the input, e.g., '300px' or '100%'; see shiny::validateCssUnit().

height

the height of the input, e.g., '300px' or '100%'; see shiny::validateCssUnit(). Only has an effect if textarea=TRUE.

placeholder

A character string giving the user a hint as to what can be entered into the control. Internet Explorer 8 and 9 do not support this option.


dakep/stat305templates documentation built on Nov. 27, 2022, 8:23 a.m.