How to use the inputmask.extendDefinitions function in inputmask

To help you get started, we’ve selected a few inputmask examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github brandynbennett / ember-inputmask / addon / components / input-mask.js View on Github external
setMask: function() {
    Inputmask.extendDefinitions({
      '2': {
        'validator': '[2-9]'
      }
    });

    if (!this.element) {
      return;
    }

    var mask = this.get('mask'), options = this.get('options');

    if (this.element.inputmask) {
      this.element.inputmask.remove();
    }

    var inputmask = new Inputmask(mask, options);

inputmask

Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.

MIT
Latest version published 4 months ago

Package Health Score

75 / 100
Full package analysis