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
Make any element resizable. Just as jQuery-UI, but simpler and without jQuery.
Use
You have to use browserify, component, duo, webmake or any other browser require
provider in order to use resizable.
$ npm install resizable
var Resizable = require('resizable');
var el = document.querySelector('.my-element');
//make an element resizable
var resizable = new Resizable(el, {
//options
});
resizable.on('resize', function(){
//...
});
Options
Parameter | Default | Description |
---|---|---|
within |
parentNode or root |
Restrict resizing within the container |
handles |
'e,w,n,s,nw,ne,sw,se' or 's,se,e' |
CSV/Array/Object of handles. |
Events
Name | Description |
---|---|
resize |
When element actual size has changed |