Skip to content

zzawadz/dragulaR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drag'n'drop elements with dragulaR

Coverage Status CRAN_Status_Badge Downloads

R's interface for dragula library for moving around elements in shiny app.

Installation:

source("https://install-github.me/zzawadz/dragulaR")

Demo:

Drag'n'drop plots:

library(dragulaR)
runApp(system.file("apps/example01-dragula", package = "dragulaR"))

Track what is in the containers:

runApp(system.file("apps/example02-input", package = "dragulaR"))

Works with renderUI

runApp(system.file("apps/example06-dragula-dynamic-elements-renderUI", package = "dragulaR"))

runApp(
  system.file("apps/example06-dragula-dynamic-elements-renderUI", package = "dragulaR"),
  display.mode = "showcase")

Pass options to dragula

See dragula README for valid options.

runApp(
  system.file("apps/example07-dragula-input-options", package = "dragulaR"),
  display.mode = "showcase")

Limit maximum items in a container

Use the maxItems option to restrict the number of items that can be dropped into a container:

# Limit "Model" container to 3 items maximum
dragula(c("Available", "Model"), maxItems = list(Model = 3))

# Run the example app
runApp(system.file("apps/example08-max-items", package = "dragulaR"))

All examples

library(dragulaR)
dir(system.file("apps/", package = "dragulaR"))
# dashboard-example
# example01-dragula
# example02-input
# example03-dragula-get-elements-order
# example04-dragula-module
# example05-dragula-dynamic-elements
# example06-dragula-dynamic-elements-renderUI
# example07-dragula-input-options
# example08-max-items

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •