previousAction()
Last updated 22/01/2025
The
previousAction()
is a function on the Five
object that returns to the previously selected or replaced action. This will restore
selected actions by default, however, by setting revertSelect
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 [, 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 |