JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 985
  • Score
    100M100P100Q119444F
  • License MIT

Resizable behaviour for elements

Package Exports

  • resizable

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (resizable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Resizable behaviour provider.

npm install resizable

var Resizable = require('resizable');

var el = document.querySelector('.my-element');


var resizable = new Resizable(el, {
    within: 'parent',
    handles: 's, se, e',
    threshold: 10,
});

resizable.on('resize', function(){
    //...
});