Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Static

Callable

  • Creates a new Inputmask instance.

    Parameters

    • maskOrAlias: string

      A mask pattern or a reference to a predefined alias.

    • Optional opts: default.Options

      Mask options.

    Returns Instance

  • Creates a new Inputmask instance.

    Parameters

    Returns Instance

Index

Constructors

  • Creates a new Inputmask instance.

    Parameters

    • maskOrAlias: string

      A mask pattern or a reference to a predefined alias.

    • Optional opts: default.Options

      Mask options.

    Returns Instance

  • Creates a new Inputmask instance.

    Parameters

    Returns Instance

Methods

  • extendAliases(aliases: {}): void
  • Extends the set of available mask aliases.

    Parameters

    Returns void

  • Extends the default inputmask options.

    Parameters

    Returns void

  • extendDefinitions(definitions: {}): void
  • Extends the set of available definitions.

    Parameters

    Returns void

  • Instead of masking an input element it is also possible to use the inputmask for formatting given values. Think of formatting values to show in jqGrid or on other elements then inputs.

    Parameters

    Returns string

  • Validate a given value against the mask.

    Parameters

    Returns boolean

  • remove(selectorOrElement: string | HTMLElement | ArrayLike<HTMLElement>): void
  • Remove the inputmask.

    Parameters

    • selectorOrElement: string | HTMLElement | ArrayLike<HTMLElement>

    Returns void

  • setValue(selectorOrElement: string | HTMLElement | ArrayLike<HTMLElement>, value: string): void
  • The setvalue functionality is to set a value to the inputmask like you would do with jQuery.val, BUT it will trigger the internal event used by the inputmask always, whatever the case. This is particular usefull when cloning an inputmask with jQuery.clone. Cloning an inputmask is not a fully functional clone. On the first event (mouseenter, focus, ...) the inputmask can detect if it where cloned and can reactivate the masking. However when setting the value with jQuery.val there is none of the events triggered in that case. The setvalue functionality does this for you.

    Parameters

    • selectorOrElement: string | HTMLElement | ArrayLike<HTMLElement>
    • value: string

    Returns void

  • Unmask a given value against the mask.

    Parameters

    • value: string

      Value to be unmasked.

    • opts: default.Options

      Mask options.

    Returns string

Generated using TypeDoc