ng-keypad is a simple set of directive that allow you to create a custom keypad to provide on screen user input functionnality. Mobile and desktop compatible. You can view a demo here : View Demo.
Keypad design by Courtny Cotten
//Basic usage
<div data-ng-keypad="numeric">
// Insert key pad template here.
</div>
//Combined with ng-include
<div data-ng-keypad="numeric">
<div ng-include="" src="'partials/keypad/numeric.html'"></div>
</div>
data-ng-keypad
REQUIRED Specify ID for the keypad instance. You can have multiple keypads in the same application.data-auto-close
Set that to true and the keypad will automatically close when user click outside of it.data-ng-draggable
Use for the ng-draggable directive. Allowing the keypad to be moved on screen.
//Basic usage - This dispatch Keypad.KEY_PRESSED event
<button data-ng-key="1">1</button>
//Custom or modifier key - This dispatch Keypad.MODIFIER_KEY_PRESSED event. Those events need to be handled by your application.
<button data-ng-key="[CLEAR]">Clear</button>
//Basic usage
<input class="input" data-ng-model="inputModel" data-ng-keypad-input="numeric" />
//It can also be used on a tag to prevent keyboard to show up on mobile devices
<a class="input" data-ng-model="inputModel" data-ng-keypad-input="numeric" ></a>
data-ng-model
REQUIRED Instance of ng-model that will key updated by the keypad.data-ng-keypad-input
REQUIRED Specify ID of the ng-keypad instance you want to open when user focus or click on the field.data-ng-keypad-restrict
Restrict character or input value using regular expression.