angular-schema-form
angular-schema-form copied to clipboard
HTML 5 Field attributes
Hi,
what about supporting step, min and max for number/integer fields for example?
Any idea to where to start to add field options?
min and max i think would be pretty easy, it should just be a matter of adding the min and max angular validation directives to the template. See what I did for ng-pattern as an example.
step might be more involve, might require a custom validation maybe?
The idea is to delegate min, max and step to the browser. Chrome handles it pretty well. For the rest (angular validation) that could come later.
So the intent is just to declare options somehow and append the number template, which doesn't exist but would give more more freedom than tweaking the string one.