$selectField->prev()
Returns the previous item in the collection if available
$selectField->prev(TCollection|null $collection = null): SelectField|null
Parameters
| Name | Type | Default |
|---|---|---|
| $collection | TCollectionornull |
null
|
Return types
Kirby\Form\Field\SelectFieldornull
This method does not modify the existing $selectfield object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Form\Field\SelectField
inherited from Kirby\Form\Field