InputfieldFloat class

Floating point number with precision

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the InputfieldFloat class also inherits all the methods and properties of: InputfieldInteger, Inputfield, WireData and Wire.

Show class?             Show args?        

Common

NameReturnSummary 
defaultValue int float string Initial/default value (when used with FieldtypeInteger) 
digits int Total digits, for when used in decimal mode (default=0) 
getAttributesString()
stringOverride method from Inputfield to convert locale specific decimals for input[type=number] 
getConfigInputfields()
InputfieldWrapperInputfield config
hasE(string $value)
boolDoes the value have an E in it like ”123E-3” or "123E3” ? 
initValue int float Initial/default value (when used as independent Inputfield) 
inputType string Input type to use, one of "text" or "number" 
max int float 
min int float 
noE bool int Convert “123E-3” and “123E3” type numbers to real numbers in the <input>? 3.0.193+ 
placeholder string 
precision int null string Decimals precision (or -1 to disable rounding in 3.0.193+) 
size int 
step int float string 

Additional methods and properties

In addition to the methods and properties above, InputfieldFloat also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.244

“The end client and designer love the ease at which they can update the website. Training beyond how to log in wasn’t even necessary since ProcessWire’s default interface is straightforward.” —Jonathan Lahijani