Skip to content

Commit

Permalink
docs: example and known issues
Browse files Browse the repository at this point in the history
- add example of set options with bind
- add known issues
  • Loading branch information
beholdr committed Dec 25, 2023
1 parent ffe70ec commit 716c38e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 -->
Expand Down Expand Up @@ -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.

0 comments on commit 716c38e

Please sign in to comment.