Enables input of user entered tags or selection of predefined tags.
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 | self | Add multiple selectable options | |
Inputfield | int bool | Allow user-entered tags? | |
Inputfield | array | ||
Inputfield | int bool | Close select dropdown box after user makes selection? | |
Inputfield | string | One of 's' (for space ' '), 'p' (for pipe '|') or 'c' (for comma). | |
Inputfield Inputfield Inputfield | array | Get all attributes in an associative array | |
Inputfield | int | Max selectable items, 0 for no limit, 1 for single-select mode, or 2+ to limit selection to that number. | |
Inputfield | string null | ||
Inputfield | string | Placeholder string to show when no options selected. | |
Inputfield Inputfield Inputfield | bool | Set page selector | |
Inputfield | array string | Array of tags [ 'tag' => 'label' ], or newline separated string of "tag=label", or use addTag() to populate. | |
Inputfield | string | Remote URL to find tags from, must have a '{q}' in it somewhere, which will be replaced with the query. | |
Inputfield | bool int | ||
Inputfield | string |
Settings
Helpers
Name | Return | Summary | |
---|---|---|---|
Inputfield Inputfield Inputfield | array | Static utility function to convert a tags string to an array of [ 'tag' => 'label' ] |
Additional methods and properties
In addition to the methods and properties above, Inputfield
API reference based on ProcessWire core version 3.0.236