https://github.com/bitflower/angular-inputmodeller-directive
Directive to format/limit/prepend the entered input value BEFORE it goes to the model.
https://github.com/bitflower/angular-inputmodeller-directive
Last synced: 11 months ago
JSON representation
Directive to format/limit/prepend the entered input value BEFORE it goes to the model.
- Host: GitHub
- URL: https://github.com/bitflower/angular-inputmodeller-directive
- Owner: bitflower
- Created: 2014-08-27T06:16:06.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-06T07:43:23.000Z (over 11 years ago)
- Last Synced: 2025-06-24T23:20:00.359Z (11 months ago)
- Language: JavaScript
- Size: 195 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
angular-inputmodeller-directive
===============================
Directive to format / limit / prepend text to the entered input value BEFORE it goes to the model.
Example of an input for entering valid table names with:
* a prepend text
* uppercase formatting
* only alpha-numeric characters and _ allowed
* and a max length of 25 characters:
```html
```
Renders to:

When you delete back to "ABC_" and reach the prepend text which can't be deleted:

When you enter "&%$test !!!" the non alpha-numeric characters will be removed, inluding space, and the text will be uppercased:
