1.0.9 • Published 6 years ago

mati-test v1.0.9

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

vue-input-tag

A Vue.js 2.0 input tag component inspired in react-tagsinput

Codeship Coverage Status Version License Monthly Downloads

Installation

NPM

npm install vue-input-tag --save

Yarn

yarn add vue-input-tag

Register the component

import InputTag from 'vue-input-tag'
Vue.component('input-tag', InputTag)

Usage

<input-tag :tags.sync="tagsArray"></input-tag>

Props

NameTypeDefaultDescription
tagsArray[]Tags to be render in the input
placeholderString""Placeholder to be shown when no tags
read-onlyBooleanfalseSet input to readonly
addTagOnBlurBooleanfalseAdd tag on input blur
limitString or Number-1 (none)Set a limit for the amount of tags
validateString or Function or Object""Apply certain validator for user input. Choose from email, url, text, digits or isodate. Or pass a function or a RegExp object for custom validation
addTagOnKeysArray 13 (return), 188 (comma), 9 (tab) Keys that are going to add the new tag
allowDuplicatesBooleanfalseAllow duplicate tags
1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

1.0.6-rc.1

6 years ago