ractive-ez-resize

2.0.1 • Public • Published

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).

Demo

Install

npm i ractive-ez-resize
import 'ractive-ez-resize';

Usage

<div on-ezresize="@this.handleResize()" />

Event Properties

  • width: the new width of the element
  • height: the new height of the element
  • oldWidth: the old width of the element
  • oldHeight: the old height of the element

Dependencies (0)

    Dev Dependencies (11)

    Package Sidebar

    Install

    npm i ractive-ez-resize

    Weekly Downloads

    0

    Version

    2.0.1

    License

    WTFPL

    Last publish

    Collaborators

    • eleandor