The field:step function could be expanded to have configurable steps in a field number entry. Something like this:
field:steps({10, 25, 100}, 10, true)
Where {10, 25, 100} is a table of available steps
and 10 is default step value
and true/false decides whether the default steps are disabled (leaving only the ones set up in the table)
and if custom steps are not needed,
field:steps(nil, 10, nil)
or could simply use existing function (to maintain backward compatibility with Luas that use it):
field:step(10)
The field:step function could be expanded to have configurable steps in a field number entry. Something like this:
field:steps({10, 25, 100}, 10, true)
Where {10, 25, 100} is a table of available steps and 10 is default step value and true/false decides whether the default steps are disabled (leaving only the ones set up in the table)
and if custom steps are not needed, field:steps(nil, 10, nil) or could simply use existing function (to maintain backward compatibility with Luas that use it): field:step(10)