2.0.1 • Published 7 days ago

aurelia-inputmask v2.0.1

Weekly downloads
147
License
MIT
Repository
github
Last release
7 days ago

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"), { showMaskOnHover: false /* any default options */ });
    // the rest of your configuration...
}

Usage

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

You can either use options attribute or 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.

2.0.1-au2

7 days ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago