_prevInList
Fetch the previous value to this one from the given List --
Function
Anything -> _prevInList
(list) -> The same Type
- Receives
- Something that you expect to find in the List
- list
- An expression that produces a List
- Produces
- The previous element in list. None if the received value was at the beginning, or isn't contained in the list
Given a received value, and a list that contains that value, this returns the previous element to that
in the list.
For example, say that your Space has a collection of Fruit, including Apple, Banana, Blackberry, Kiwi and Pear, and you
want to be able to navigate between them. In the Default View for Fruit, you could create a button that goes to the
previous one like this:
[[_prevInList(Fruit._instances) -> _linkButton(""Previous Fruit"")]]