Skip to content

RouR/alight-input-masks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular light input money mask

Configuration

  1. Import the alight_money.js script in your page. For example:
<script src="alight_money.js"></script>

How to use

al-money

  • Example:
<input type="text" name="field14" al-money="defaultMoney" >
  • Define the number of decimals (default is 2):
<input type="text" name="field14" al-money="dec5" money-decimals="5">
  • Extended example:
<input type="text" name="field14" al-money="custom1" money-decimals="1" money-decimal-delimiter="/" money-thousands-delimiter=" " money-currency="&:">

al-money2

  • Extended example:
<input type="text" name="field14" al-money2="custom1" money-decimals="1" money-decimal-delimiter="/" money-thousands-delimiter=" " money-currency="&:">

Demo

See more usage examples in the Demo page

Links

Angular Light - http://angularlight.org/

Original directive for AngularJS 1x http://assisrafael.github.io/angular-input-masks/

About

Opinionated input masks for Angular Light

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.8%
  • HTML 1.1%
  • CSS 0.1%