Closed willowTank closed 6 years ago
the method moves
can be used to that, e.g.
const allowDrag = false; // <= change this variable to true to allow drag
const options = {
containers: [document.querySelector('.list')],
moves(element) {
return allowDrag
},
}
I want to disable/enable dragular with variable dynamically. Please help me.