Description Usage Arguments See Also Examples
Create a dropzone input
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | dropZoneInput(
inputId,
choices,
presets = NULL,
hidden = FALSE,
placeholder = NULL,
highlight = FALSE,
multivalued = FALSE,
selectable = FALSE,
selectOnDrop = FALSE,
togglevis = FALSE,
togglelock = FALSE,
removeOnSpill = TRUE,
direction = "vertical",
maxInput = Inf,
replaceOnDrop = FALSE,
flex = FALSE,
server = NULL,
...
)
|
inputId |
The |
choices |
List of acceptable values with their associated labels. Note that
the labels can be arbitrary HTML, as long as they are wrapped in a |
presets |
Array or list of preset values. |
hidden |
Should the selected items be hidden? This is useful to represent a reactive or event trigger. |
placeholder |
Insert placeholder text. |
highlight |
Highlights the container on dragover. Useful when |
multivalued |
Allow multiple items with the same value? |
selectable |
Are the items in this dropzone selectable? Default is |
selectOnDrop |
Should new dropped items be automatically selected? |
togglevis |
Add an icon to allow toggling items between visible/invisible. Default is
|
togglelock |
Add an icon to allow toggling items between locked/unlocked. Locked items
are not draggable. Default is |
removeOnSpill |
Remove items when dragged outside dropzone? Default is |
direction |
Direction ( |
maxInput |
Maximum allowable dropped items. |
replaceOnDrop |
Replace item on drop when at maximum allowable items? |
flex |
Use flex container for dropzone. Items are set to wrap, and flex direction is
given by the |
server |
Function or function name as a string that will be used for
server-side creation of UI for dropzone items. This is needed only when the
dropzone items contain Shiny inputs and/or outputs. You must also include
the |
... |
Additional arguments passed along to |
1 2 3 4 | dropZoneInput("dropzone", choices = list(one = "1",
two = "2",
three = "3",
four = "4"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.