Dragula-rs
Drag and drop so simple it hurts
Wrapper for the Dragula Javascript library.
Usage
Dragula provides the easiest possible API to make drag and drop a breeze in your applications.
use *;
let doc = window.unwrap.document.unwrap;
let element = doc.get_element_by_id.unwrap;
let drake = dragula;
You can also provide an Options
instance to specify
behaviour of certain drag-and-drop features.
use *;
use Direction;
use Element;
//--snip--
let options = Options ;
let drake = dragula_options;
//--snip--
cargo
Features
- js-sys: On by default. Can be used to toggle dependencies on the
js-sys
crate. Most of this crate relies solely onwasm-bindgen
, so disabling this feature currently just prevents you from getting containers on an existing Drake. The main reason you might want to disable this would be to improve compile times.