itextInput: Create a text input with a label either left, above, or both...

Description Usage Arguments Author(s) Examples

Description

Create a text input with a label either left, above, or both left and above the input. With no label it becomes an 'inline' input suitable for embedding in a table.

Usage

1
2
3
4
5
6
itextInput(inputId, label, label2 = NULL, value = "", width = NULL,
  placeholder = NULL,
  label.style = "float:left;padding:0.5em 1em 0.5em 0em;",
  input.style = "width:75%;border-radius:4px;",
  container.style = "margin-bottom:0px;", container = list(outer =
  shiny::div, inner = shiny::span))

Arguments

inputId

The DOM ID.

label

The label to display to the left of the input.

label2

The optional label to display to the above of the input.

value

The initial value for the input.

placeholder

The html placeholder.

label.style

Inline css to apply to the left-of-input label.

input.style

Inline css to apply to the main input tag.

container.style

Inline css to apply to the outer container.

container

A named list of containers to apply. May length one or two, with names in c('outer', 'inner'); if length one the value will be applied to the outer container, and the inner will be a span by default. Should be either a block container 'div' or an inline container 'span'.

Author(s)

Jon Katz

Examples

1
itextInput(inputId='test', label='test label', value=1)

jonkatz2/shinyAddOns documentation built on May 19, 2019, 7:30 p.m.