1.0.13 • Published 1 year ago

maskit v1.0.13

Weekly downloads
8
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.0.12

1 year ago

1.0.11

3 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.1.0

5 years ago