From 716c38e50130207f5ef742a2981f6ded295ef369 Mon Sep 17 00:00:00 2001 From: Alexander Shabunevich Date: Mon, 25 Dec 2023 21:31:05 +0300 Subject: [PATCH] docs: example and known issues - add example of set options with bind - add known issues --- docs/README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 66940b1..1053835 100644 --- a/docs/README.md +++ b/docs/README.md @@ -134,7 +134,7 @@ export default { ``` -### 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 + +``` + #### Global registration of directive @@ -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.