Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zzawadz/dragular
https://github.com/zzawadz/dragular
drag-and-drop shiny
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zzawadz/dragular
- Owner: zzawadz
- Created: 2016-07-02T22:05:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-21T13:11:15.000Z (over 4 years ago)
- Last Synced: 2024-01-28T23:08:01.149Z (11 months ago)
- Topics: drag-and-drop, shiny
- Language: R
- Size: 1.36 MB
- Stars: 62
- Watchers: 6
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drag'n'drop elements with *dragulaR*
[![Travis-CI Build Status](https://travis-ci.org/zzawadz/dragulaR.svg?branch=master)](https://travis-ci.org/zzawadz/dragulaR)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/zzawadz/dragulaR?branch=master&svg=true)](https://ci.appveyor.com/project/zzawadz/dragulaR)
[![Coverage Status](https://img.shields.io/codecov/c/github/zzawadz/dragulaR/master.svg)](https://codecov.io/github/zzawadz/dragulaR?branch=master)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/dragulaR)](https://cran.r-project.org/package=dragulaR)
[![Downloads](https://cranlogs.r-pkg.org/badges/dragulaR)](https://cran.rstudio.com/package=dragulaR)
[![](https://cranlogs.r-pkg.org/badges/grand-total/dragulaR)](https://cran.rstudio.com/web/packages/dragulaR/index.html)R's interface for ***[dragula](https://github.com/bevacqua/dragula)*** library for moving around elements in shiny app.
## Installation:
```r
source("https://install-github.me/zzawadz/dragulaR")
```## Demo:
### Drag'n'drop plots:
```r
library(dragulaR)
runApp(system.file("apps/example01-dragula", package = "dragulaR"))
```
![](media/basic.gif)### Track what is in the containers:
```r
runApp(system.file("apps/example02-input", package = "dragulaR"))
```![](media/model.gif)
### Works with `renderUI`
```r
runApp(system.file("apps/example06-dragula-dynamic-elements-renderUI", package = "dragulaR"))
```![](media/renderui.gif)
```r
runApp(
system.file("apps/example06-dragula-dynamic-elements-renderUI", package = "dragulaR"),
display.mode = "showcase")
```### Pass options to `dragula`
See [dragula README](https://github.com/bevacqua/dragula#dragulacontainers-options) for valid options.
```r
runApp(
system.file("apps/example07-dragula-input-options", package = "dragulaR"),
display.mode = "showcase")
```### All examples
```r
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
```