Skip to content

airboss001/aurelia-inputmask

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aurelia-inputmask

Aurelia plugin for Inputmask

Installation

npm inputmask aurelia-inputmask tslib --save

Configuration

// main.ts
export function configure(aurelia: Aurelia) {
    aurelia.use.plugin(PLATFORM.moduleName("aurelia-inputmask"));
    // the rest of your configuration...
}

Usage

<input inputmask="999-999-999" value.bind="rawValue" />
<input inputmask="mask: 999-999-999; value.bind: inputmaskValue; greedy.bind: false; is-value-masked: true" value.bind="rawValue" />
<input inputmask="mask: datetime; input-format: dd/mm/yyyy; value.bind: inputmaskValue" value.bind="rawValue" />

Not all original options are supported via the attribute, but you can use data-inputmask-<option> html attributes to configure the mask on an element.

Contribution

If you feel that something is missing please submit an issue or better yet a PR.

Packages

No packages published

Languages

  • TypeScript 100.0%