Skip to content

jdemoort/vue-resize-sensor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

events

@resize Object

A size object { width, height }

Browser support

Same browser support as Vue.js 2

Credits

Franck Freiburger

About

detect container resizing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 100.0%