Commit 81b9d193 authored by ThomasG77's avatar ThomasG77

Manage in HTML 5 input attributes min, max and step

parent faf04d83
......@@ -243,6 +243,15 @@ L.FormBuilder.Input = L.FormBuilder.Element.extend({
if (this.options.placeholder) {
this.input.placeholder = this.options.placeholder;
}
if (this.options.min != undefined) {
this.input.min = this.options.min;
}
if (this.options.max != undefined) {
this.input.max = this.options.max;
}
if (this.options.step) {
this.input.step = this.options.step;
}
L.DomEvent.on(this.input, this.getSyncEvent(), this.sync, this);
L.DomEvent.on(this.input, 'keydown', this.onKeyDown, this);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment