1.0.4 • Published 6 years ago

@pderas/vue2-chars v1.0.4

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

Vue Chars

A vue.js plugin that gets takes a string of tokens and produces that many single input boxes. The value, however, will be one connected string (e.i. Not a bunch of single characters seperated)

How to initialize Vue Chars

Vue chars is built as a vue plugin to allow for use throughout the application.

import Chars from "@pderas/vue2-chars";

Vue.use(Chars);

Usage

Creation

Vue chars is easily created, but at mininum requires a mask. Having said that, Vue chars works best with v-model.

<chars mask="####" v-model="myVar"></chars>

Properties

PropertyRequiredTypeDefaultDescription
masktrueNumbern/aThe mask for the input
valuefalseNumber|String0Value for the input, can be used with v-model

Masks

MaskDescription
#Number character only
XAlphanumeric character only
SAlphabetic character only
AAlphabetic character only (will convert to uppercase)
aAlphabetic character only (will conver to lowercase)

License

This project is covered under the MIT License. Feel free to use it wherever you like.

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago