An open API service indexing awesome lists of open source software.

https://github.com/incuca/text-mask-collection

Repository of pre-made input masks
https://github.com/incuca/text-mask-collection

mask text-mask vue

Last synced: 4 months ago
JSON representation

Repository of pre-made input masks

Awesome Lists containing this project

README

          

# text-mask-collection
[![Travis](https://img.shields.io/travis/InCuca/text-mask-collection/master.svg)](https://travis-ci.org/InCuca/text-mask-collection/branches) [![Code Climate](https://img.shields.io/codeclimate/coverage/InCuca/text-mask-collection.svg)](https://codeclimate.com/github/InCuca/text-mask-collection/test_coverage)
[![Code Climate](https://img.shields.io/codeclimate/maintainability/InCuca/text-mask-collection.svg)](https://codeclimate.com/github/InCuca/loopback-chai/maintainability)

Repository of pre-made input masks

To be used with [text-mask](https://github.com/text-mask/text-mask) with support for Vanilla, Vue, Angular, React and more.

## Usage with Vue

The plugin exposes three properties `$mask`, `$unmask` and `$format` with functions mask/unmask and transform according each respective mask.

```js
import Vue from 'vue';
import {VueTextMasks} from 'text-mask-collection';
import VueTextMask from 'vue-text-mask';

Vue.use(VueTextMasks);

Vue.component('m-input', VueTextMask);

new Vue({
template: `

Value: {{$format.centimeters(rawValue)}}


`,
data() {
return {rawValue: 100}
},
});
```