2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-05 16:42:28 +03:00

Add example with simple money format

This commit is contained in:
Alexander Shabunevich
2022-12-16 17:56:02 +03:00
parent 9225e5c81d
commit dee541684b
+5 -1
View File
@@ -38,7 +38,11 @@ const examples = [
code: `const options = {\n postProcess: (val) => {\n const max = "" + new Date().getFullYear()\n return val > max ? max : val\n }\n}\n\n<input v-maska:[options] data-maska="####">`
},
{
label: 'Money format: repeated and reversed',
label: 'Money format simple',
code: `<input\n v-maska\n data-maska="0,99"\n data-maska-tokens="0:\\d:multiple|9:\\d:optional"\n>`
},
{
label: 'Money format with thousand separators',
code: `<input\n v-maska\n data-maska="9 99#,##"\n data-maska-tokens="9:[0-9]:repeated"\n data-maska-reversed\n>`
}
]