1.0.13 • Published 2 years ago

maskit v1.0.13

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

Maskit

Demo: burlakeugene.github.io/maskit

npm i --save maskit
0 - any number
A - any char
Ы - any cyrillic char
?+-()[]{}.,\\/-=_~`|'"  - autofilled chars, also you can wrap any symbol in brackets "{someChar}", and it will be autofilled
In other cases mask will be waiting for same char
<input type="text" data-maskit="+{7}(000) 000-00-00">
<input type="text" data-maskit="000 / 000">
document.querySelectorAll('input[data-maskit]').forEach((input, index) => {
  new Maskit(input, {
    mask: input.getAttribute('data-maskit'),
    notFilledClear: true,
    onFilled: scope => {},
    offFilled: scope => {},
    onBlur: scope => {},
    onChange: scope => {},
    onInit: scope => {}
    beforeChange: ({scope, value}) => {}
  });
});
1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

4 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

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

1.1.0

6 years ago