2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-20 20:00:34 +03:00

Add mask raw value attribute and @mask event

This commit is contained in:
Alexander Shabunevich
2021-02-06 20:10:51 +03:00
parent 75fb1638ba
commit 99013bd69d
10 changed files with 48 additions and 24 deletions
+4
View File
@@ -140,6 +140,10 @@ While specifying custom tokens you can also add a symbol-transformation behavior
}
```
## Getting raw (unmasked) value
To get raw value read `data-mask-raw-value` property of input. You can subscribe to `@maska` event to know when this value updates. Please see [examples page](https://beholdr.github.io/maska/).
## Dynamic masks
To use several masks on single input, pass array instead of string as mask value.