1.5.0 • Published 5 years ago

text-mask-collection v1.5.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

text-mask-collection

Travis Code Climate Code Climate

Repository of pre-made input masks

To be used with 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.

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: `
  <div>Value: {{$format.centimeters(rawValue)}}</div>
  <m-input
    :value="rawValue"
    :mask="$mask.centimeters"
    @input="rawValue = $unmask.centimeters($event) />
  `,
  data() {
    return {rawValue: 100}
  },
});
1.5.0

5 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.12

6 years ago

1.1.11

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

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