angular-schema-form icon indicating copy to clipboard operation
angular-schema-form copied to clipboard

HTML 5 Field attributes

Open olimart opened this issue 11 years ago • 2 comments

Hi,

what about supporting step, min and max for number/integer fields for example?

Any idea to where to start to add field options?

olimart avatar May 29 '14 05:05 olimart

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?

superchris avatar May 29 '14 18:05 superchris

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.

olimart avatar May 29 '14 19:05 olimart