InputfieldInteger class

Integer (positive or negative)

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

Show class?             Show args?        

Common

NameReturnSummary 
defaultValue int float string Initial/default value (when used with FieldtypeInteger) 
getConfigInputfields()
InputfieldWrapperInputfield configuration
initValue int float Initial/default value (when used as independent Inputfield) 
inputType string Input type to use, one of "text" or "number" 
isEmpty()
boolIs current value considered empty? 
max int float 
min int float 
placeholder string 
render()
stringRender Inputfield
set(string $key, mixed $value)
Inputfield WireDataSet setting or attribute 
setAttribute($key, $value)
InputfieldSet attribute 
size int 
step int float string 

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.244

“ProcessWire is like a breath of fresh air. So powerful yet simple to build with and customise, and web editors love it too.” —Margaret Chatwin, Web developer