previousAction()
Last updated 5/02/2025
The
previousAction()
is a function on the Five
object that returns to the previous selected or replaced action. This will return
selected actions by default, however, by setting the revertSelect
parameter to false
, you can restore replaced actions in a dashboard as well.
Optionally, you can pass in a number of actions you want to go back, in the case of more than one action being selected or replaced.
info
You can find an examples on the following:
- selectAction()andpreviousAction()being used together in our Learning Resources.
- previousAction()in our How to Guides.
Available
Client
Function Signature
previousAction(revertSelect: boolean = true [, num: number = 1]) : void;
Parameter | Type | Description |
---|---|---|
revertSelect | boolean | If true, will restore selected actions, otherwise, it will restore replaced actions |
num | number | The number of actions to go back |