ractive-ez-resize
v2.0.1
Published
Ractive Ez UI Resize Event
Downloads
3
Maintainers
Readme
Ractive Ez Resize
Ez resize event for ractive.js
Detect when an element is resized (this is not the same as the window.resize event, which only triggers when the window is resized).
Install
npm i ractive-ez-resize
import 'ractive-ez-resize';
Usage
<div on-ezresize="@this.handleResize()" />
Event Properties
width
: the new width of the elementheight
: the new height of the elementoldWidth
: the old width of the elementoldHeight
: the old height of the element