Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

HTML 5 Field attributes #5

Open
olimart opened this issue May 29, 2014 · 2 comments
Open

HTML 5 Field attributes #5

olimart opened this issue May 29, 2014 · 2 comments

Comments

@olimart
Copy link
Contributor

olimart commented May 29, 2014

Hi,

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

Any idea to where to start to add field options?

@superchris
Copy link
Member

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?

@olimart
Copy link
Contributor Author

olimart commented May 29, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants