Add options for min, max and step values for number inputs.

This commit is contained in:
j433866 2019-03-04 11:46:27 +00:00
parent 0d86a7e427
commit 7975fadfe9
3 changed files with 15 additions and 0 deletions

View file

@ -184,6 +184,9 @@ class Operation {
if (ing.disabled) conf.disabled = ing.disabled;
if (ing.target) conf.target = ing.target;
if (ing.defaultIndex) conf.defaultIndex = ing.defaultIndex;
if (typeof ing.min === "number") conf.min = ing.min;
if (typeof ing.max === "number") conf.max = ing.max;
if (ing.step) conf.step = ing.step;
return conf;
});
}