Skip to contents

Text Input Form Group

Usage

inp_text(label = NULL, width = 4, ...)

Arguments

label

label for the form input - this will default to display the name of the variable

width

the form-group's width in bootstrap grid units

...

additional arguments passed to the form group parser

Value

An object of class "appifyr_input" and "appifyr_text_input"

Examples

inp_text()
#> $fg
#> [1] "text"
#> 
#> $label
#> NULL
#> 
#> $width
#> [1] 4
#> 
#> $dots
#> list()
#> 
#> attr(,"class")
#> [1] "appifyr_input"      "appifyr_text_input"
inp_text(label = "Plot Title")
#> $fg
#> [1] "text"
#> 
#> $label
#> [1] "Plot Title"
#> 
#> $width
#> [1] 4
#> 
#> $dots
#> list()
#> 
#> attr(,"class")
#> [1] "appifyr_input"      "appifyr_text_input"
inp_text(width = 6)
#> $fg
#> [1] "text"
#> 
#> $label
#> NULL
#> 
#> $width
#> [1] 6
#> 
#> $dots
#> list()
#> 
#> attr(,"class")
#> [1] "appifyr_input"      "appifyr_text_input"
inp_text(label = "Description", width = 12)
#> $fg
#> [1] "text"
#> 
#> $label
#> [1] "Description"
#> 
#> $width
#> [1] 12
#> 
#> $dots
#> list()
#> 
#> attr(,"class")
#> [1] "appifyr_input"      "appifyr_text_input"