- Added
BaseModelManager
as base and interface forModelManager
to extend/implement - When copy mode is set,
move
andremove
model manager actions are not performed on model, onlyinsertAt
- Better error handling on Drag handler JSON parsing
Removed old /example
app. Doesn't work with Vue2 or new design.
Removed the concept of bags. Not needed now that named drakes of a service are stored in a Hash object, indexed by key. We just have services with a map of drakes that have drag options, containers and models. Much simpler to understand!
Old bag flags/data (life cycle metadata) such as initEvents
and registered
are stored directly on each drake instead.
- Changed life cycle method
ready
tomounted
with$nextTick
- Add
$dragula
to Vue.prototype to make available on each component instance - Make
$dragula.$service
a shortcut to access key methods on global service - Add
service
property tov-dragula
directive to indicate service to use for container - Add ability to add
DragulaService
per service name of component viaservice="name"
onv-dragula
element or by default use the global service. - Add ability to create and set
eventBus
per service, either as shared bus or independent - Add ability to set
drakes
on creation ofDragulaService
viadrakes
option - Add ability to create and use custom
DragulaService
viacreateService
plugin option - Add ability to create and use custom
eventBus
viacreateEventBus
plugin option - Make
bind
try to bind directive (with drakes) to a matching named component service before falling back to bind to global dragula service. - Add detailed logging via
logging: true
option on plugin - Extracted common logic of directive functions into reusable functions
- Add
.bagNames
getter onDragulaService