bs_textarea {bsTools}R Documentation

Create a HTML textarea tag configured with Bootstrap classes

Description

Create a HTML textarea tag configured with Bootstrap classes

Usage

bs_textarea(
  id,
  value = NULL,
  label = NULL,
  placeholder = NULL,
  rows = NULL,
  custom_height = NULL,
  div_class = NULL,
  textarea_class = "form-control",
  label_class = "form-label",
  text = NULL,
  text_class = "form-text",
  textarea_args = list(),
  inline = FALSE
)

Arguments

id

A string, the id/name for the textarea, passed to the id and name params of html5::textarea().

value

A string, the value of the textarea, passed to the value param of html5::textarea().

label

A string, the label to use for the textarea, passed to html5::label().

placeholder

A string, passed to the placeholder param of html5::textarea().

rows

An integer, the number of rows for the textarea, passed to the rows param of html5::textarea().

custom_height

A string, should indicate a number and unit (ex. "100px") that gets appended to "height: " and passed to the style param of html5::textarea().

div_class

A string, the class of the div tag surrounding the the label and textarea tags.

textarea_class

A string, the class of the textarea tag.

label_class

A string, the class of the label tag.

text

A string, text or HTML to display with the textarea and label tags.

text_class

A string, the class of the text or HTML to display with the textarea and label tags.

textarea_args

A named list, names should correspond to a parameter of the html5::textarea() function and values will be passed to that parameter.

inline

TRUE/FALSE, if TRUE, adds a div and classes to display the label and textarea and text in the same line.

Value

A string of HTML.

Examples

bs_textarea(
id = "example1",
label = "Example Text Area Input"
)

[Package bsTools version 0.1.0 Index]