textInput.typeahead {shinysky} | R Documentation |
A simple typeahead text input component
Update textInput.typeahead
textInput.typeahead(id, placeholder, local, valueKey, tokens, template, limit = 20) updateTextInput.typeahead(session, id, dataset, valueKey, tokens, template, limit = 20, placeholder = "")
id |
The id of the field |
placeholder |
The placeholder text. It is shown in the text input before any input has occured |
local |
A data.frame containing all the information you want to make available to typeahead to display in the dropdown. You can use any of the variable in the dataset via the template argument |
valueKey |
The element that acts as the value key in the dataset usually an unique identifier of the row |
tokens |
A list whose length equal to nrow(local) where each element is array of string tokens. Typing the tokens will select the correponding rows |
template |
A hogan template on how to show the content e.g. '<p> name </p>' where name is one of the variables in local |
limit |
An integer of the upper limit on how many hits to show in the typeahead dropdown |
session |
The Shiny sessoin specified in shinyServer(function(input, output, session) ...). |
dataset |
The data.frame to render |
Other ShinySky.elements: actionButton2
,
hideshinyalert
, select2Input
,
shinyalert
, showshinyalert