You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 months ago | |
---|---|---|
.. | ||
src | 4 months ago | |
.babelrc | 4 months ago | |
LICENSE | 4 months ago | |
README.md | 4 months ago | |
package.json | 4 months ago |
README.md
vue-resize-sensor
detect container resizing.
- event based
- no window.onresize
- no interval/timeout detection
- no CSS modifications
- no Javascript-Framework dependency
Example
<template>
<div>
<resize-sensor @resize="resize"></resize-sensor>
</div>
</template>
API
props
initial Boolean
Request an initial size event.
events
@resize Object
A size object { width, height }
Browser support
Same browser support as Vue.js 2
Note
since v2.x, the script is exported as esm.