Commit e63bc71f authored by Yohan Boniface's avatar Yohan Boniface

Merge pull request #2 from webgeodatavore/master

Manage in HTML 5 input attributes min, max and step
parents faf04d83 59967719
......@@ -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