OptionaleventOptionalfixOptionally, how many decimal places to fix the float to. You can use 2 to make GCD speeds (i.e. 2.50) show up as 2.50 instead of 2.5.
OptionalidHTML ID to assign to this element.
OptionalinputThe HTML input inputmode. Common values include 'decimal', 'email', 'none', 'numeric', 'search', 'tel', 'text', and 'url'.
OptionalpatternSets the pattern attribute
OptionalpostValidation to be run against the converted input string, before setting the field.
Return undefined to indicate no validation error, or return a string containing a validation message.
OptionalpreValidations to be run against the raw input string, before any conversion.
Return undefined to indicate no validation error, or return a string containing a validation message.
OptionaltypeThe HTML input type. You may wish to change this to 'number' if dealing with numerical fields.
Which event to hook. e.g. 'input' for when any input is entered (the default), or 'change'.