pub fn dragula<T>(objs: &[T]) -> DrakeExpand description
Activates the dragula drag-and-drop system with sane default options
The simplest way to activate dragula is to call dragula and pass it
the list of containers whose contents will draggable.
ยงExample:
use dragula::*;
let doc = web_sys::window().unwrap().document().unwrap();
let element_1 = doc.get_element_by_id("drag-container-1").unwrap();
let element_2 = doc.get_element_by_id("drag-container-2").unwrap();
let drake = dragula(&[element_1, element_2]);
Calling dragula will return a Drake, allowing you to
interact with the active system managing drag-and-drop.