Create a dragzone container

dragZone(id, choices, ...)

Arguments

id

The container id.

choices

List of values to select from.

...

Additional arguments passed along to tags$div, such as class

See also

Examples

dragZone("dragzone", choices = list(one = "One", two = "Two", three = "Three", four = "Four"))
#> <div id="dragzone" class="ds-dragzone"> #> <div data-value="one" data-instance class="ds-dragitem">One</div> #> <div data-value="two" data-instance class="ds-dragitem">Two</div> #> <div data-value="three" data-instance class="ds-dragitem">Three</div> #> <div data-value="four" data-instance class="ds-dragitem">Four</div> #> </div>