(void): void
The Reset
actions resets a context to the state it was in just after the onInit
event was executed. This clears the user's inputs.
The
Reset
action resets the state to the state before theonEnter
event is executed, and theonEnter
event is not executed after the reset happens. This might cause unexpected behavior if you used anonEnter
event to initialize the state.
Parameters
The Reset
action does not take any parameters.
Examples
A reset button:
- id: reset_button
type: Button
properties:
title: Reset
events:
onClick:
- id: reset
type: Reset