kentekenplaat
v1.0.6
Published
Automatically formats an input to a Dutch licenseplate.
Readme
Automatically formats an input to a Dutch licenseplate.
Quick start
Install
Install with NPM
npm install kentekenplaat --saveInstall with Bower
bower install kentekenplaat --saveOr download the latest release.
Usage
Only the class kentekenplaat is mandatory to apply styles and formatting:
<input type="text" class="kentekenplaat">Include the Kentekenplaat stylesheet in your page:
<link rel="stylesheet" href="css/kentekenplaat.min.css" />Pure Javascript
Include the kentekenplaat.min.js script in your page, and then:
new Kentekenplaat(document.querySelector('.kentekenplaat'));In case you want to format multiple inputs:
document.querySelectorAll('.kentekenplaat').forEach(function(element){
new Kentekenplaat(element);
});jQuery
Include the kentekenplaat.min.js and kentekenplaat-jquery.min.js scripts in your page, and then:
$('.kentekenplaat').kentekenplaat();AngularJS
Coming soon!
License
The code and the documentation are released under the MIT License.
