Multiple selection, progressive enhancement to select multiple
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: InputfieldSelectMultiple, InputfieldSelect, Inputfield, WireData and Wire.
Common
Name | Return | Summary | |
---|---|---|---|
Inputfield | string | Where to place new selected items in list: top or bottom (default='bottom') | |
Inputfield | bool | Can items be added to selection? (default=true) | |
Inputfield | bool | Animate the the adding/removing of items in the list? (default=false) | |
Inputfield | bool | Debug mode keeps original select visible (default=false) | |
Inputfield | bool | Can items be removed from selection? (default=true) | |
Inputfield | float string | Opacity of deleted item, set to 1.0 to disable opacity adjustment (applicable only if hideDeleted=true) | |
Inputfield | string | Deleted item values are prepended with this character in the form submission (applicable only if hideDeleted=true) (default='-') | |
Inputfield | string | Text used in the "edit" link (if editLink is populated) | |
Inputfield | string | Optional URL options can link to with tag {value} replaced by option value, i.e. /path/to/page/edit?id={$value} | |
Inputfield | string | Button selector for finding buttons that should become modal window buttons | |
Inputfield | string bool | Whether the edit link (if used) should be modal or "longclick" for longclick modal only (default=true) | |
Inputfield | bool | When true, edit link only appears for items that were already selected (default=true) | |
Inputfield | bool | Use fieldset support? (for PW Fieldset types) (default=false) | |
Inputfield Inputfield Inputfield | InputfieldWrapper | Field config | |
Inputfield | bool | Hide items when deleted. If false, items remain but are marked for deletion (default=true) | |
Inputfield | bool | Hide the <select> when there are no items available to select? (default=false) | |
Inputfield | bool | Use the highlight feature? (default=false) | |
Inputfield | string | Text that precedes highlight of added item (default='Added: ') | |
Inputfield | string | Text that precedes highlight of removed item (default='Removed: ') | |
Inputfield | string | Text used in the "remove" link | |
Inputfield Inputfield Inputfield | string | Render | |
Inputfield Inputfield Inputfield | bool | Called before render() | |
Inputfield Inputfield Inputfield | Inputfield Inputfield InputfieldSelect | Set Inputfield property or AsmSelect option | |
Inputfield Inputfield Inputfield | self | Set custom option for AsmSelect | |
Inputfield Inputfield Inputfield | self | Set multiple custom options for AsmSelect | |
Inputfield | string | Sortable handle/icon | |
Inputfield | bool | Should the list be sortable? (default=true) | |
Inputfield | int bool | Use page editor links for selected Page items, when user has edit permission? (default=false) |
Additional methods and properties
In addition to the methods and properties above, Inputfield
API reference based on ProcessWire core version 3.0.236