node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

plastiq-draggabilly

plastiq-draggabilly

A plastiq component that makes elements draggable using draggabilly.

Demo

Example

var plastiq = require('plastiq');
var draggable = require('plastiq-draggabilly');
var h = plastiq.html;
 
function render(model) {
  return h('.page',
    draggable(h('.red', 'Animal')),
    draggable({ grid: [20, 20] }, h('.green', 'Vegetable')),
    draggable({ axis: 'x' }, h('.blue', 'Mineral'))
  );
}
 
plastiq.append(document.body, render, {});

License

MIT