InputfieldFloat class
Inputfield for floating point numbers
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Inputfield class also inherits all the methods and properties of: InputfieldInteger, Inputfield, WireData and Wire.
Common
| Name | Return | Summary | |
|---|---|---|---|
Inputfield Inputfield Inputfield | string | Override method from Inputfield to convert locale specific decimals for input[type=number] | |
Inputfield Inputfield Inputfield | InputfieldWrapper | Inputfield config | |
Inputfield Inputfield Inputfield | bool | Does the value have an E in it like ”123E-3” or "123E3” ? |
Properties
| Name | Return | Summary | |
|---|---|---|---|
| Inputfield | int float string | Initial/default value (when used with FieldtypeInteger) | |
| Inputfield | int | Total digits, for when used in decimal mode DEFAULT: 0 | |
| Inputfield | int float | Initial/default value (when used as independent Inputfield) | |
| Inputfield | string | Input type to use, one of "text" or "number" DEFAULT: text | |
| Inputfield | int float | Maximum allowed value | |
| Inputfield | int float | Minimum allowed value | |
| Inputfield | bool int | Convert “123E-3” and “123E3” type numbers to real numbers in the <input>? 3.0.193+ DEFAULT: false | |
| Inputfield | string | Placeholder attribute for input DEFAULT: '' | |
| Inputfield | int null string | Decimals precision (or -1 to disable rounding in 3.0.193+ DEFAULT: 2 | |
| Inputfield | int | Size attribute for input | |
| Inputfield | int float string | HTML5 step attibute value DEFAULT: any |
Additional methods and properties
In addition to the methods and properties above, Inputfield
API reference based on ProcessWire core version 3.0.252