Skip to content

Commit

Permalink
up docs
Browse files Browse the repository at this point in the history
  • Loading branch information
uNmAnNeR committed Feb 28, 2024
1 parent 433331b commit 2329dab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/guide.html
Expand Up @@ -841,6 +841,11 @@ <h3 id="masked-enum" class="section-h"><a href="#enum">Enum Mask</a></h3>
new Date(0, i).toLocaleString(window.navigator.language, { month: 'long' })
),

// optionally can set match function
matchValue: (estr, istr, matchFrom) =>
// use case insensitive match
IMask.MaskedEnum.DEFAULTS.matchValue(estr.toLowerCase(), istr.toLowerCase(), matchFrom),

// pattern options can be set as well
lazy: false
})
Expand Down Expand Up @@ -1354,6 +1359,11 @@ <h3 id="treeshaking" class="section-h"><a href="#treeshaking">Treeshaking <kbd>s
mask: IMask.MaskedEnum,
enum: languages,

// optionally can set match function
matchValue: (estr, istr, matchFrom) =>
// use case insensitive match
IMask.MaskedEnum.DEFAULTS.matchValue(estr.toLowerCase(), istr.toLowerCase(), matchFrom),

// pattern options can be set as well
lazy: false
}).on('accept', function() {
Expand Down

0 comments on commit 2329dab

Please sign in to comment.