A toggle providing similar input capability to a checkbox but much more configurable.
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 Inputfield Inputfield | $this | Add a selectable option (custom API usage only, overrides built-in options) | |
Inputfield | string | Default selected value of 'no', 'yes', 'other' or 'none' (default='none') | |
Inputfield Inputfield Inputfield | string | Format label for HTML output (entity encode, etc.) | |
Inputfield Inputfield Inputfield | array | Get all possible labels for all label types and all languages | |
Inputfield Inputfield Inputfield | array | Return a list of config property names allowed for fieldgroup/template context | |
Inputfield Inputfield Inputfield | InputfieldWrapper | Configure Inputfield | |
Inputfield Inputfield Inputfield | mixed | Get the delegated Inputfield that will be used for rendering selectable options | |
Inputfield Inputfield Inputfield | array | Get labels for the given label type | |
Inputfield Inputfield Inputfield | array | Get all selectable options as array of [ value => label ] | |
Inputfield Inputfield Inputfield | string | Get the label for the currently set (or given) value | |
Inputfield | string | Inputfield class to use or blank for this toggle buttons (default='') | |
Inputfield Inputfield Inputfield | bool | Is the current value empty? (i.e. no selection) | |
Inputfield | int | Label type to use, see the labelType constants (default=labelTypeYes) | |
Inputfield | string | Custom no/off label | |
Inputfield | string | Custom label for optional other value Label to use for "other" option | |
Inputfield Inputfield Inputfield | $this | Process input | |
Inputfield Inputfield Inputfield | string | Render input element(s) | |
Inputfield Inputfield Inputfield | bool | Render ready | |
Inputfield Inputfield Inputfield | string | Render value | |
Inputfield Inputfield Inputfield | int string | Sanitize the value to be one ofthe constants: valueYes, valueNo, valueOther, valueUnknown | |
Inputfield Inputfield Inputfield | Inputfield | Set attribute | |
Inputfield Inputfield Inputfield | $this | Set all options with array of [ value => label ] (custom API usage only, overrides built-in options) | |
Inputfield | bool int | Allow radios or toggles to be de-selected, enabling possibility of no-selection? (default=false) | |
Inputfield | int bool | Use the "other" option? (default=false) | |
Inputfield | int bool | Reverse the order of the Yes/No options? (default=false) | |
Inputfield | bool int | Use vertically oriented radio buttons? Applies only if $inputfieldClass is 'InputfieldRadios' (default=false) | |
Inputfield | int string | Integer value when selection is made or blank string when no selection (0=No, 1=Yes, 2=Other, ''=Unknown) | |
Inputfield | int | Type of value for methods that ask for it (use one of the valueType constants) | |
Inputfield Inputfield Inputfield | (nothing) | ||
Inputfield | string | Custom yes/on label |
Additional methods and properties
In addition to the methods and properties above, Inputfield
API reference based on ProcessWire core version 3.0.236