1.0.0 • Published 9 years ago

plastiq-draggabilly v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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