All Projects → xdimedrolx → vue-input-mask

xdimedrolx / vue-input-mask

Licence: MIT license
Yet another Vue component for input masking

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects
HTML
75241 projects

Projects that are alternatives of or similar to vue-input-mask

react-native-masked-input-text
A typescript masked input component for react-native
Stars: ✭ 14 (-22.22%)
Mutual labels:  maskedinput, mask
FormatEditText
格式化输入框,可用来格式化数字、金额、号码等; FormatEditText can be used as a formatted text input box
Stars: ✭ 121 (+572.22%)
Mutual labels:  maskedinput, mask
ionic2-mask-directive
directive to mask ion-input
Stars: ✭ 24 (+33.33%)
Mutual labels:  maskedinput, mask
Zhpopupcontroller
Help you pop up custom views easily. and support pop-up animation, layout position, mask effect and gesture interaction etc.
Stars: ✭ 1,481 (+8127.78%)
Mutual labels:  maskedinput, mask
Inputmask
Input Mask plugin
Stars: ✭ 5,695 (+31538.89%)
Mutual labels:  maskedinput
Ros people object detection tensorflow
An extensive ROS toolbox for object detection & tracking and face/action recognition with 2D and 3D support which makes your Robot understand the environment
Stars: ✭ 202 (+1022.22%)
Mutual labels:  mask
Bdialog
Extend the Bootstrap Modal features, making dialog more functions and easier to use, dialog type including modal, alert, mask and toast types
Stars: ✭ 174 (+866.67%)
Mutual labels:  mask
Ngx Currency
📦 Currency mask module for Angular
Stars: ✭ 161 (+794.44%)
Mutual labels:  mask
prompt-password-strength
Custom mask function for prompt-password that adds a 'strength progress meter' that changes color as the password strength increases. Uses zxcvbn, the popular password strength estimation tool brought to you by dropbox.
Stars: ✭ 18 (+0%)
Mutual labels:  mask
yii-masked-input
Yii Framework Masked input widget Extension
Stars: ✭ 38 (+111.11%)
Mutual labels:  maskedinput
ngx-ion-simple-mask
Input mask for Angular/Ionic
Stars: ✭ 21 (+16.67%)
Mutual labels:  mask
Xamarin.Forms.MaskedEntry
📝 Use mask in your Xamarin.Forms apps
Stars: ✭ 17 (-5.56%)
Mutual labels:  maskedinput
Flutter Masked Text
A masked text for Flutter.
Stars: ✭ 229 (+1172.22%)
Mutual labels:  mask
Maskededittext
It allows you to add a mask to EditText
Stars: ✭ 184 (+922.22%)
Mutual labels:  mask
react-native-floating-label-input
A customizable React Native TextInput with its placeholder always shown. Includes masks, global styles, character count, and a bunch else.
Stars: ✭ 206 (+1044.44%)
Mutual labels:  mask
Alimask
😷 alimask 是一个使用 canvas 生成类似阿里巴巴内部网站水印图片的 JavaScript 库。
Stars: ✭ 163 (+805.56%)
Mutual labels:  mask
Nsstringmask
NSStringMask allows you to apply masks or formats to NSStrings using NSRegularExpression to input your format.
Stars: ✭ 242 (+1244.44%)
Mutual labels:  mask
Depth-Guided-Inpainting
Code for ECCV 2020 "DVI: Depth Guided Video Inpainting for Autonomous Driving"
Stars: ✭ 50 (+177.78%)
Mutual labels:  mask
findpeaks
The detection of peaks and valleys in a 1d-vector or 2d-array (image)
Stars: ✭ 121 (+572.22%)
Mutual labels:  mask
Autonumeric
autoNumeric is a standalone library that provides live as-you-type formatting for international numbers and currencies.
Stars: ✭ 1,626 (+8933.33%)
Mutual labels:  maskedinput

vue-input-mask

Yet another Vue component for input masking. Based on react-input-mask.

Demo

Install

yarn add vue-input-mask
or
npm i -S vue-input-mask

Properties

mask : string

Mask string. Default format characters are:
9: 0-9
a: A-Z, a-z
*: A-Z, a-z, 0-9

Any character can be escaped with a backslash. It will appear as a double backslash in JS strings. For example, a German phone mask with unremoveable prefix +49 will look like mask="+4\9 99 999 99" or mask={'+4\\9 99 999 99'}

maskChar : string

Character to cover unfilled parts of the mask. Default character is "_". If set to null or empty string, unfilled parts will be empty as in ordinary input.

formatChars : object

Defines format characters with characters as a keys and corresponding RegExp strings as a values. Default ones:

{
  '9': '[0-9]',
  'a': '[A-Za-z]',
  '*': '[A-Za-z0-9]'
}

alwaysShowMask : boolean

Show mask when input is empty and has no focus.

Example

import Vue from 'vue';
import InputMask from 'vue-input-mask';

Vue.component('input-mask', InputMask)

In template:

    <input-mask v-model="value" mask="+4\9 99 999 99" maskChar=" "></input-mask>

Todo

  • Refactoring
  • Tests
  • Implementation of componentWillReceiveProps

Thanks

Thanks @sanniassin for the awesome component

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].