An open API service indexing awesome lists of open source software.

https://github.com/franckfreiburger/vue-resize-sensor

detect container resizing
https://github.com/franckfreiburger/vue-resize-sensor

element event-based onresize resize sensor vuejs2

Last synced: 2 months ago
JSON representation

detect container resizing

Awesome Lists containing this project

README

        

# vue-resize-sensor
detect container resizing.
* event based
* no window.onresize
* no interval/timeout detection
* no CSS modifications
* no Javascript-Framework dependency

## Example
```



```

## 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](https://github.com/vuejs/vue/blob/dev/README.md)

## Note
since v2.x, the script is exported as esm.

## Credits
[ Franck Freiburger](https://www.franck-freiburger.com)