States
Last updated
Last updated
You can set the instance to save the current state when the current selection is changed by using the saveState
option.
You can use ctrl + z
to undo a selection and ctrl + y
to restore / redo an undone selection. The method can be used to manually save, load, undo, redo and clear states.
The instance will also fire it's own events corresponding to the state event. See the events.