It's posible override mask mixin
-
Hi guys, I need to generate custom masks, in the mixin mask.js there are some predefined masks, but I need to extend to other types of masks, like one that allows spaces and or dashes, it is possible to override this mixin?
const TOKENS = { T: { pattern: '[a-zA-Z- ]', negate: '[^a-zA-Z- ]' }, ...
-
You can make any mask you’d like.
Scott
-
thank you @s-molinari for responding, could you please guide me on how best to do so.
-
-
Is there are any example, or do you have any tips in order to make a currency mask using only quasar?
For example, typing from 99 to 999999999 should mask like “R$ 0,99” to “R$ 9.999.999,99”.
I couldn’t figure it out so I made my own mask function listening to @input, which comes with an inconvenience: if you for some reason has to mess with the debounce prop up (like 2000), the mask will also wait for 2 secs for apply.
It would be nice if mask prop could take a function pointer that would be called independent (and before) the input event, so you could just pipe in your custom mask logic.
Thanks.
-
-
impressive. Thanks!
-
a ‘secret’ quasar plugin! I wonder what other alpha/beta quasar plugins there are…
found one , a static site generator : https://github.com/freddy38510/quasar-app-extension-ssg
Is there an overview of beta/alpha quasar plugins? Could be useful for people testing them…
-
Unfortunately no. We don’t yet have a library of references to non-official App Extensions (we don’t call them plugins
). I believe we’ll be working on that for or during the life of v2 of Quasar though (but don’t quote me on that).
Scott
-
Hi, I use v-money, but qdecinal plugin looks better.
@s-molinari I understand the documentation in which I can use :
# Numeric S Letter, a to z, case insensitive N Alphanumeric, case insensitive for letters A Letter, transformed to uppercase a Letter, transformed to lowercase X Alphanumeric, transformed to uppercase for letters x Alphanumeric, transformed to lowercase for letters
But if I need to use alphanumeric with spaces this doesn’t work for me, so I ask if it is possible to over-write or customize the mask with other characters, thank you, for responding
-
No. It’s not possible to make custom mask options. You’d need some third party option.
Scott