yohanboniface / Leaflet.FormBuilder

Utility to create forms connected to L.Class instances
7 stars 3 forks source link

Manage in HTML 5 input attributes min, max and step #2

Closed ThomasG77 closed 9 years ago

ThomasG77 commented 9 years ago

Attributes min, max and step to manage HTML 5 input were not there. We added them in order to enhance opacity change in kosmtik/kosmtik-overlay@b79141fb3a6f6541e521764ff3c63e644c9299e2 They enable to use the mouse to change opacity by step (every n steps) instead of typing and also help limiting min, max values for input.

You can see how to configure an example at https://github.com/webgeodatavore/kosmtik-overlay/blob/html5attrs/front.js#L23

We didn't make a PR on kosmtik-overlay at the moment as it depends from this PR acceptation.

ThomasG77 commented 9 years ago

Updated due to your feedback

yohanboniface commented 9 years ago

Thanks :) I'll publish an updated version in a few minutes :)