How to use the imask function in imask

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

github SUI-Components / sui-components / components / atom / input / src / inputs / MaskInput / index.js View on Github external
componentDidMount () {
    const {mask} = this.props
    this.mask = new IMask(this.field, mask)
  }
github uNmAnNeR / imaskjs / packages / angular-imask / src / imask.directive.ts View on Github external
private initMask () {
    this.maskRef = IMask(this.element, this.imask as Opts)
      .on('accept', this._onAccept.bind(this))
      .on('complete', this._onComplete.bind(this));
  }
github SUI-Components / sui-components / components / atom / input / src / Mask / index.js View on Github external
componentDidMount() {
    const {mask} = this.props
    this.mask = new IMask(this.field, mask)
  }
github uNmAnNeR / imaskjs / packages / vue-imask / src / imask.directive.js View on Github external
function initMask (el, opts) {
  el.maskRef = new IMask(el, opts)
    .on('accept', () => fireEvent(el, 'accept', el.maskRef))
    .on('complete', () => fireEvent(el, 'complete', el.maskRef));
}
github uNmAnNeR / imaskjs / packages / react-imask / src / imask.mixin.js View on Github external
initMask (maskOptions=this._extractMaskOptionsFromProps({...this.props})) {
      this.maskRef = new IMask(this.element, maskOptions)
        .on('accept', this._onAccept.bind(this))
        .on('complete', this._onComplete.bind(this));

      this.maskValue = this.props.value;
    }

imask

vanilla javascript input mask

MIT
Latest version published 9 days ago

Package Health Score

81 / 100
Full package analysis

Similar packages