1.2.0 • Published 6 years ago

vue-resize-on-event v1.2.0

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

vue-resize-on-event

npm vue2

VueJS directive to resize a component when a given event fires.

Installation

npm install --save vue-resize-on-event

Example

Include the module for the input event to register the custom directive v-resize-on-input:

import Vue from 'vue'
import VueResizeOnEvent from 'vue-resize-on-event'

export default {
   mixins: [
     VueResizeOnEvent( 'input' ), //registers directive v-resize-on-input
   ],

   data() {
     return {
       text: '',
     }
   },
 }

Usage

Add attribute v-resize-on-input to a textarea element to have it resize automatically when its value is changed interactively.

<template>
  <div>
    <textarea
      v-model="text"
      v-resize-on-input>
    </textarea>
  </div>
</template>

License

MIT

1.2.0

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago