robinhodemorais Posted April 8, 2020 Posted April 8, 2020 try the following format, download jquery.maskedinput.min.js and jquery.min.js, in custom files declared as not ClientEvents> UniEvents should not be placed beforeInit: beforeInit function (sender, configuration) { Ext.onReady (function () { $ ("#" + sender.id + "- inputEl"). mask ("(99) 9999-9999? 9"); }); } but it didn't work, how can I do that? Quote
Sherzod Posted April 8, 2020 Posted April 8, 2020 40 minutes ago, robinhodemorais said: but it didn't work, how can I do that? Try this, may help you: function painted(sender, eOpts) { $('#'+sender.inputElement.id).inputmask("(99) 9999-9999"); } Quote
Sherzod Posted April 8, 2020 Posted April 8, 2020 2 minutes ago, robinhodemorais said: an error has occurred 1 hour ago, robinhodemorais said: jquery.maskedinput.min.js ? Quote
robinhodemorais Posted April 8, 2020 Author Posted April 8, 2020 got this link https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.min.js is inside the files folder and configured, see the image that it is also loading on the console. Quote
robinhodemorais Posted April 8, 2020 Author Posted April 8, 2020 I got.... function painted(sender, eOpts) { $('#'+sender.inputElement.id).mask("(99) 99999-9999"); } Quote
belo Posted April 8, 2020 Posted April 8, 2020 function beforeInit(sender, config) { config.inputMask = '(99) 9999-9999'; } Eduardo Belo 3 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.