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

docs: example and known issues

- add example of set options with bind
- add known issues
This commit is contained in:
Alexander Shabunevich
2023-12-25 21:31:05 +03:00
parent ffe70ecaef
commit 716c38e501
+11 -1
View File
@@ -134,7 +134,7 @@ export default {
```
<!-- tabs:end -->
### Get value
### Bind value
To get masked value you can use standard `v-model` directive.
But if you want to access an unmasked (raw) value, you can pass a variable as `v-maska` directive value.
@@ -242,6 +242,12 @@ export default {
?> Please see [issue#149](https://github.com/beholdr/maska/issues/149): options object should be assigned in the current file.
You can set options and bind to an object at the same time:
``` html
<input v-maska:[options]="bindedObject">
```
#### Global registration of directive
<!-- tabs:start -->
@@ -560,3 +566,7 @@ mask.masked("12") // = 1-2
mask.unmasked("12") // = 12
mask.completed("12") // = true
```
# Known issues
When used on input of type `number`, could have inconsistent behavior in different browsers. Use attribute `inputmode="numeric"` with `type="text"` if you need a numeric keyboard.