2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-08 17:22:27 +03:00

Docs updated

This commit is contained in:
Alexander Shabunevich
2022-12-09 13:36:09 +03:00
parent 289fc8ff43
commit 105d26523c
+2 -5
View File
@@ -202,9 +202,6 @@ export default {
```
<!-- tabs:end -->
!> Dont use `v-model` on masked input: it possible will be buggy,
because its value is taken from the input event instead of the input value.
#### Global registration of directive
<!-- tabs:start -->
@@ -244,10 +241,10 @@ Options passed on init will be used as defaults and could be overriden by `data-
<!-- tabs:start -->
### **Description**
- `mask` / `data-maska` — mask to apply (**string**, **array of strings** or **function**)
- `mask` / `data-maska` — mask to apply (**string**, **array of strings** or **function**). If you pass empty string or `null` it will disable a mask
- `tokens` / `data-maska-tokens` — custom tokens object
- `tokensReplace` / `data-maska-tokens-replace` — if custom tokens should replace default tokens (if not set they will merge)
- `eager` / `data-maska-eager` — eager mode
- `eager` / `data-maska-eager` — eager mode, e.g. with eager mask `#-#` you will get `1-` when you input `1` (in non-eager mode mask will be equal `1`)
- `reversed` / `data-maska-reversed` — reversed mode
### **Types**