Insert new options after an existing option
Available since version 3.0.134.
Usage
// basic usage
$self = $inputfieldSelect->insertOptionsAfter(array $options);
// usage with all arguments
$self = $inputfieldSelect->insertOptionsAfter(array $options, $existingValue = null);
Arguments
Name | Type(s) | Description |
---|---|---|
options | array | Associative array of |
existingValue (optional) | string, int, null | Existing option value to add options after, or omit to append at end. |
Return value
self
InputfieldSelect methods and properties
API reference based on ProcessWire core version 3.0.236