Single checkbox toggle
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: Inputfield, WireData and Wire.
Common
Name | Return | Summary | |
---|---|---|---|
Inputfield | int | When set to 1, setting value attribute to non-blank/non-zero automatically triggers checked. | |
Inputfield | string | Same as label2, but used as part of field config rather than API-only config. | |
Inputfield | bool | Show only the checkbox without label text next to it? (default=false) @since 3.0.144 | |
Inputfield Inputfield Inputfield | bool | Get or set current checkbox boolean attribute state | |
Inputfield | string | Value when checked (default=1) | |
Inputfield Inputfield Inputfield | InputfieldWrapper | Configure checkbox field | |
Inputfield Inputfield Inputfield | bool | Is empty (checkbox not checked)? | |
Inputfield | string | Alterate label to display next to checkbox (default=use regular label) | |
Inputfield | array | Optional attributes for <label> element that surrounds checkbox (default=[]) @since 3.0.141 | |
Inputfield Inputfield Inputfield | $this | Process input | |
Inputfield Inputfield Inputfield | string | Render checkbox input | |
Inputfield Inputfield Inputfield | string | Render value only | |
Inputfield Inputfield Inputfield | Inputfield Inputfield | Set property | |
Inputfield Inputfield Inputfield | Inputfield Inputfield | Set attribute | |
Inputfield | string | Value when not checked (default='', blank string) | |
Inputfield Inputfield Inputfield | (nothing) | Wired to ProcessWire instance |
Additional methods and properties
In addition to the methods and properties above, Inputfield
API reference based on ProcessWire core version 3.0.236