All Projects → David-Desmaisons → Vue.resize

David-Desmaisons / Vue.resize

Licence: mit
Vue directive to detect resize events with deboucing and throttling capacity.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue.resize

Navscroll Js
Lightweight package for highlighting menu items as you scroll the page, also scrolling to target section when item clicked. Use as a vue component/directive or in vanilla js.
Stars: ✭ 41 (-87.11%)
Mutual labels:  vuejs2, vue-directive
Vuebar
(🗃️ Archived) Vue 2 directive for custom scrollbar that uses native scroll behavior. Lightweight, performant, customizable and without dependencies. Used successfully in production on https://ggather.com
Stars: ✭ 650 (+104.4%)
Mutual labels:  vuejs2, vue-directive
Vue Codemirror
⌨️ @codemirror component for @vuejs
Stars: ✭ 2,115 (+565.09%)
Mutual labels:  vuejs2, vue-directive
Vue Quill Editor
🍡@quilljs editor component for @vuejs
Stars: ✭ 6,874 (+2061.64%)
Mutual labels:  vuejs2, vue-directive
Draggable Vue Directive
Vue2 directive that handles drag & drop
Stars: ✭ 286 (-10.06%)
Mutual labels:  vuejs2, vue-directive
Vue Awesome Swiper
🏆 Swiper component for @vuejs
Stars: ✭ 12,072 (+3696.23%)
Mutual labels:  vuejs2, vue-directive
v-lazy-img
simplistic vue.js directive for image lazy loading
Stars: ✭ 25 (-92.14%)
Mutual labels:  vuejs2, vue-directive
Vuejs Firebase Shopping Cart
Shopping cart demo using Vuejs and Firebase
Stars: ✭ 274 (-13.84%)
Mutual labels:  vuejs2
Vue Qart
the compoent of vue 2.x for qart.js
Stars: ✭ 298 (-6.29%)
Mutual labels:  vuejs2
Vue Ripple Directive
Material Ripple Effect as Vue Directive.
Stars: ✭ 266 (-16.35%)
Mutual labels:  vue-directive
Cadence Web
Web UI for visualizing workflows on Cadence
Stars: ✭ 261 (-17.92%)
Mutual labels:  vuejs2
Mui Vue2
mui+mint+vue2.x+vue-router+vuex+webpack最终打包成原生apk的app项目,样式使用vue移动端mint ui框架,原生手机能力偏重于mui框架,欢迎star!
Stars: ✭ 278 (-12.58%)
Mutual labels:  vuejs2
Roastandbrew
Updated content available! We learned a lot since we originally wrote this article. We now have this updated for Laravel 8, Vue, and NuxtJS 👉 https://srvrsi.de/book
Stars: ✭ 300 (-5.66%)
Mutual labels:  vuejs2
Office Ui Fabric Vue
Office UI Fabric implementation for Vue.js
Stars: ✭ 273 (-14.15%)
Mutual labels:  vuejs2
Mix.core
🚀 Mixcore CMS is an open source CMS that support both headless and decoupled to easily build any kinds of app/web app/customisable APIs built on top of ASP.NET Core / Dotnet Core. It is a completely open source ASP.NET Core (Dotnet Core) CMS solution. https://mixcore.org
Stars: ✭ 304 (-4.4%)
Mutual labels:  vuejs2
Formvuelar
Vue form components with server-side validation in mind
Stars: ✭ 263 (-17.3%)
Mutual labels:  vuejs2
Vue Page Transition
A lightweight Vue.js plugin for page / route transitions.
Stars: ✭ 311 (-2.2%)
Mutual labels:  vuejs2
Vue Awesome Mui
🏆Mui component for Vue.js(1.x ~ 2.x)
Stars: ✭ 307 (-3.46%)
Mutual labels:  vue-directive
Vue Highlightjs
Syntax highlighting with highlight.js for Vue.js 2.x
Stars: ✭ 295 (-7.23%)
Mutual labels:  vuejs2
Vue Kindergarten
Modular security for Vue, Vuex, Vue-Router and Nuxt
Stars: ✭ 303 (-4.72%)
Mutual labels:  vuejs2

Vue.resize

GitHub open issues GitHub closed issues Npm download Npm version vue2 MIT License

Vue directive to detect HTML resize events based on CSS Element Queries with debouncing and throttling capacity.

Demo

demo gif

Typical usage

Simple

Use this option when you need to receive all the resize events.

The onResize function will be called each time the element resizes with the corresponding HTML element as only argument.

<div v-resize="onResize">

Throttle

Use throttle when you need to rate-limit resize events frequency.

  • With default timeout (150 ms):
<div v-resize:throttle="onResize">
  • With custom timeout (in ms):
<div v-resize:throttle.100="onResize">

Debounce

Use debounce when you only need to be notified when resize events ends.

  • With default timeout (150 ms):
<div v-resize:debounce="onResize">
  • With custom timeout (in ms):
<div v-resize:debounce.50="onResize">

Initial

Use this option to receive the resize callback right after the element is mounted on the DOM and visible.

<div v-resize.initial="onResize">

Installation

  • Available through npm:
 npm install vue-resize-directive --save
  • For Modules
// ES6
import resize from 'vue-resize-directive'
//...
export default {
    directives: {
        resize,
    }
//...
  
// ES5
var resize = require('vue-resize-directive')
  • For <script> Include

    Just include Vueresize.js after ResizeSensor.js from css-element-queries and lodash.js script.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].