mirror of
https://github.com/tenrok/maska.git
synced 2026-06-20 20:00:34 +03:00
Docs for preprocessor option
This commit is contained in:
@@ -102,6 +102,17 @@ var mask = Maska.create('.masked', {
|
||||
});
|
||||
```
|
||||
|
||||
You also can pass custom preprocessing transformation function for entire input:
|
||||
|
||||
``` javascript
|
||||
var mask = Maska.create('.masked', {
|
||||
tokens: { 'Z': { pattern: /[а-яА-Я]/ }},
|
||||
preprocessor: value => {
|
||||
return value.toUpperCase();
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
You can destroy mask like that:
|
||||
|
||||
``` javascript
|
||||
|
||||
Reference in New Issue
Block a user