Skip to content

Commit

Permalink
adicionado máscara no campo de calendario
Browse files Browse the repository at this point in the history
  • Loading branch information
LimaJonas committed May 24, 2021
1 parent ff11ae4 commit 8ce4f0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Magento Modulo de Mascarar campos - BR

- Simples solução para mascarar campos automaticamente no Magento2.
- Funcionando nos campos de CPF/CNPJ (TAX/VAT), Telefone, e CEP (Zipcode/Postcode).
- Funcionando nos campos de CPF/CNPJ (TAX/VAT), Telefone, Calendário (No formato DD/MM/AAAA) e CEP (Zipcode/Postcode).
- Usando [jQuerySimpleMask](https://github.com/DevUtils/jQuerySimpleMask "jQuerySimpleMas") adaptado para o Magento2.
- Testado e criado usando Magento 2.3.6
### Instalação (Apenas manual)
Expand Down
7 changes: 7 additions & 0 deletions view/frontend/web/js/setMask.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,12 @@ require(['jquery', 'jquery/ui'], function($){
$(this).val('');
$(this).val(currentValue);
});
// ============================================

// CEP na página de usuário
$('#dob').simpleMask({
'mask': ['##/##/####']
});

// ============================================
});

0 comments on commit 8ce4f0c

Please sign in to comment.