Skip to content
V

vue-resize-directive

Vue.js 2.0 directive to detect element resize

by davidesmaisonsFree

#786in UI Libraries
0In stores

Description

Vue.resize is a Vue directive that detects when an HTML element changes size. It is based on CSS element queries and adds options for deboun…

Highlights

  • Detects element resize with a Vue directive
  • Throttle and debounce options
  • Initial callback on mount
  • Based on CSS element queries

Ratings & Reviews

No ratings yet

Be the first to rate vue-resize-directive.

People also visit

V

vue-draggable-resizable

Vue2 component for draggable and resizable elements

UI Libraries
Launch
R

react-resize-aware

A React hook that makes it possible to listen to element resize events

UI Libraries
Launch
V

v-viewer

Image viewer component for vue2 and vue3, supports rotation, scale

UI Libraries
Launch
V

vue-image-zoomer

image zoom component for Vue.js 2 & 3, that also works on touch devices

UI Libraries
Launch
D

dnd-grid

A vuejs grid with draggable and resizable boxes

UI Libraries
Launch
S

splitpanes

A Vue JS reliable, simple and touch-ready panes splitter / resizer

UI Libraries
Launch

vue-resize-directive FAQ

What is Vue.resize?

A Vue directive that detects resize events on an HTML element, with debounce and throttle options.

How do I install it?

It is available through npm. The README also has a section for plain script tags, which need css-element-queries and lodash.

What is the difference between throttle and debounce?

Throttle limits how often your function runs during resizing. Debounce waits until resizing ends, then calls it once.

Which Vue version is it for?

The README describes it as a Vue 2.0 directive.

What is the default timeout?

The default throttle and debounce timeout is 150 milliseconds, and you can set a custom value.

What are the best vue-resize-directive alternatives?

Popular alternatives to vue-resize-directive include vue-draggable-resizable, react-resize-aware and v-viewer. See all vue-resize-directive alternatives

Developer Stuff

Badges