select2Input {shinysky}R Documentation

select2 Input

Description

The select2 input

Usage

select2Input(inputId, label, choices = NULL, selected = NULL,
  type = c("input", "select"), drag.and.drop = FALSE, ...)

Arguments

inputId

Input variable to assign the control's value to

label

Display label for the control

choices

List of values to select from. If elements of the list are named then that name rather than the value is displayed to the user.

selected

Name of initially selected item (or multiple names if multiple = TRUE). If not specified then defaults to the first item for single-select lists and no items for multiple select lists.

type

The two valid options are input and select. The input type is similar to a text input and it can remember the order of selection. The select is based on the <select> tags in HTML and is not ordinal hence the order in which you specify the selection is not being taken into account, however it's input parameters are compatible with selectInput and you can use updateSelectInput to update its contents.

drag.and.drop

Allow drag and drop or not

...

Other arguments to pass into shiny::selectInput

Value

A select list control that can be added to a UI definition.#'

See Also

Other ShinySky.elements: actionButton2, hideshinyalert, shinyalert, showshinyalert, textInput.typeahead


[Package shinysky version 2.0.0 Index]