vue-form-generator icon indicating copy to clipboard operation
vue-form-generator copied to clipboard

[Custom Field] VfgTheMask - Masked input using Vue The Mask

Open ggondim opened this issue 5 years ago • 2 comments

As suggested by Custom Fields docs, I'm providing a new custom field we've created here at NOALVO: https://github.com/NOALVO/vfg-the-mask

It uses Vue The Mask and apply a mask to the input. It needs a schema property named mask. Example:

{
    model: 'mydate',
    type: 'vfg-the-mask',
    mask: '##/##/####'
}

ggondim avatar Jul 23 '19 22:07 ggondim

@ggondim Isn't this custom field similar to the existing cleave field? https://vue-generators.gitbook.io/vue-generators/fields/optional_fields/cleave

muschottkey avatar Jul 25 '19 10:07 muschottkey

@muschottkey it is, but he’s providing it as an alternative third party field.

If your project already relies on mask, installing cleave as an added dependency doesn’t make sense.

zoul0813 avatar Jul 25 '19 12:07 zoul0813