robinhodemorais Posted April 8, 2020 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2020 Share 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 Link to comment Share on other sites More sharing options...
robinhodemorais Posted April 8, 2020 Author Share Posted April 8, 2020 an error has occurred Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2020 Share Posted April 8, 2020 2 minutes ago, robinhodemorais said: an error has occurred 1 hour ago, robinhodemorais said: jquery.maskedinput.min.js ? Quote Link to comment Share on other sites More sharing options...
robinhodemorais Posted April 8, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
robinhodemorais Posted April 8, 2020 Author Share Posted April 8, 2020 I got.... function painted(sender, eOpts) { $('#'+sender.inputElement.id).mask("(99) 99999-9999"); } Quote Link to comment Share on other sites More sharing options...
belo Posted April 8, 2020 Share Posted April 8, 2020 function beforeInit(sender, config) { config.inputMask = '(99) 9999-9999'; } Eduardo Belo 3 Quote Link to comment Share on other sites More sharing options...
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.