Build a page finding selector visually.
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 | string | [plus-circle] Icon used for the "Add Field" link. | |
Inputfield | string | [Add Field] Text used for the "Add Field" link | |
Inputfield | bool | [true] Whether to allow adding new rows / removing existing rows | |
Inputfield | bool | [false] When no value is present, should it contribute to the selector? | |
Inputfield | bool | [true] Allow use of modifiers like include, limit? | |
Inputfield | bool | [true] Allow @grouping of subfields (like for page references)? | |
Inputfield | bool | [true] Allow use of subfields? | |
Inputfield | bool | [true] Allow use of subselectors? | |
Inputfield | bool | [false] Allow system custom fields to appear in field selects? | |
Inputfield | bool | [true] Allow system native fields to appear in field selects? | |
Inputfield | bool | [false] Allow selection of system templates (user, role, etc.)? | |
Inputfield | string | ||
Inputfield | bool | [true] Whether to show a live "number of matches" indicator. | |
Inputfield | string | [Y-m-d] Default PHP date() format for date fields. | |
Inputfield | string | [yyyy-mm-dd] Placeholder attribute text for date fields. | |
Inputfield | string | One or more (CSV) fields to disallow selection for | |
Inputfield Inputfield Inputfield | mixed | Get property | |
Inputfield Inputfield Inputfield | array | Return the default settings | |
Inputfield Inputfield Inputfield | PageArray | Get parent pages of pages using the given template | |
Inputfield Inputfield Inputfield | array | Returns an array of selector information for the given Field or field name | |
Inputfield Inputfield Inputfield | array | Return the configured settings | |
Inputfield | string | (1) | |
Inputfield | Template null | [null] Optional context template, used only just 1 allowed (pulled from $initValue automatically). | |
Inputfield | string | [selector string] Initial value that user can't change. | |
Inputfield | string | ||
Inputfield | string | ||
Inputfield | array | [empty] Selectable fields whitelist (field names). Leave empty to allow any. | |
Inputfield | int | If quantity of select options exceeds this number, use autocomplete instead for Page reference fields (since 3.0.148) | |
Inputfield | int | [20] Maximum number of users selectable. If more than regular text input used rather than select. | |
Inputfield | string | [system,field,subfield,group,modifier,adjust] Order and presence of field selection option groups. | |
Inputfield | bool | [true] Whether variables in a selector should be parsed and converted to values | |
Inputfield | bool | [true] Whether to show a live preview of selector in notes section. | |
Inputfield | string array | [name,template,id] Array or CSV string of columns to show in bookmark previews | |
Inputfield Inputfield Inputfield | $this | Process input submitted to this Inputfield | |
Inputfield Inputfield Inputfield | string | Primary Inputfield render method | |
Inputfield Inputfield Inputfield | string | Render a selector row <li> | |
Inputfield Inputfield Inputfield | string | Sanitize a selector string and return it | |
Inputfield | string | ||
Inputfield Inputfield Inputfield | this Inputfield WireData | Set property | |
Inputfield Inputfield Inputfield | Inputfield WireData | Set an attribute to this Inputfield, overridden from Inputfield class | |
Inputfield Inputfield Inputfield | (nothing) | Setup the shared structures and data used by Selector | |
Inputfield | bool int | [false] Show field labels rather than names? Or specify integer 2 to show both. | |
Inputfield | bool | [true] Whether or not to separate sytem, field, subfields, etc. into their own optgroups. If turned off, all types of fields will be shown together A-Z. | |
Inputfield | string | ... | |
Inputfield | string | [H:i] Default PHP date() format for time component of date fields. | |
Inputfield | string | [hh:mm] Placeholder attribute time component of date fields. | |
Inputfield | string | [selector string] Value that user can change. |
Additional methods and properties
In addition to the methods and properties above, Inputfield
API reference based on ProcessWire core version 3.0.236