InputfieldSelector class
Build a page finding selector visually.
Concept by Avoine, Code by Ryan Cramer, Sponsored by Avoine
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
Properties
Name | Return | Summary | Default |
---|---|---|---|
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 | 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 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 | string | ||
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.251