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 InputfieldFloat class also inherits all the methods and properties of: InputfieldInteger, Inputfield, WireData and Wire.

Show class?     Show args?       Only hookable?    

Properties

NameReturnSummary 
InputfieldFloat::defaultValue int float string Initial/default value (when used with FieldtypeInteger) 
InputfieldFloat::digits int Total digits, for when used in decimal mode
DEFAULT: 0
 
InputfieldFloat::initValue int float Initial/default value (when used as independent Inputfield) 
InputfieldFloat::inputType string Input type to use, one of "text" or "number"
DEFAULT: text
 
InputfieldFloat::max int float Maximum allowed value 
InputfieldFloat::min int float Minimum allowed value 
InputfieldFloat::noE bool int Convert “123E-3” and “123E3” type numbers to real numbers in the <input>? 3.0.193+
DEFAULT: false
 
InputfieldFloat::placeholder string Placeholder attribute for input
DEFAULT: ''
 
InputfieldFloat::precision int null string Decimals precision (or -1 to disable rounding in 3.0.193+
DEFAULT: 2
 
InputfieldFloat::size int Size attribute for input  
InputfieldFloat::step int float string HTML5 step attibute value
DEFAULT: any
 

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.252