vue-resizeobserver
A reusable resizeobserver directive for Vue.js 2.x.
Installation
npm install --save-dev @mintjamsinc/vue-resizeobserver
Usage
import VueResizeObserver from '@mintjamsinc/vue-resizeobserver';
Vue.use(VueResizeObserver);
<div key="list-container" v-resizeobserver="onListContainerResized">
</div>
export default {
methods: {
onListContainerResized() {
},
},
}
License
Copyright (c) 2021 MintJams Inc.