New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@bitsler/vue-area-autosize

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitsler/vue-area-autosize

A Fork of vue-textarea-autoresize with fixes and optimizations. This is a Vue component that provides textarea with automatically adjustable height and without any wrappers and dependencies

latest
Source
npmnpm
Version
1.0.4-patch.12
Version published
Maintainers
2
Created
Source

vue-area-autosize

npm npm vue2

A Fork of vue-textarea-autoresize with fixes and optimizations. This is a Vue component that provides textarea with automatically adjustable height and without any wrappers and dependencies

Finctionality

  • v-model binding in parent
  • min/max height limitation
  • enable/disable auto resizing dynamically
  • with @input.native and @change.native events

Note

  • You are able to handle all native events via @eventname.native read more
  • There is no CSS from box, so you are free to style it as you wish

Install

Install with npm

npm install @bitsler/vue-area-autosize --save

or with yarn

yarn add @bitsler/vue-area-autosize

Adding into app

In your main.js

import Vue from 'vue'
import VueAreaAutosize from '@bitslervue-area-autosize'

Vue.use(VueAreaAutosize)

Usage

In components

<textarea-autosize
  placeholder="Type something here..."
  ref="someName"
  v-model="someValue"
  :min-height="30"
  :max-height="350"
  @blur.native="onBlurTextarea"
></textarea-autosize>

Focus/blur or select content in components

this.$refs.someName.$el.focus()
this.$refs.someName.$el.blur()
this.$refs.someName.$el.select()

Interface

Props

PropsRequiredTypeDefaultDescription
autosize        falseBoolean     trueallow to enable/disable auto resizing dynamically
minHeightfalseNumbernullmin textarea height
maxHeightfalseNumbernullmax textarea height

Events

NameParamsDescription
inputvaluefires on textarea content changed. part of a v-model binding. read more

Slots

There are no slots available

License

MIT

Keywords

vue

FAQs

Package last updated on 28 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts