System Runtime v4.2.0
Changelogs:
- Added: Add undo/redo functionality. #70
// get the history component
const history = runtime.require('history')
// start historization
history.start()
// go back in the history
history.from(-1) // set the cursor at the index we want, -1 means to start from the end of the history stack
history.back()
// go forward the in history
history.forward()
// dump the current history
const dump = history.dump()
// load an history and inject the modifications to the current system
history.load(dump)
// stop historization
history.stop()See an example here.
- Fixed: issue on model validation.
- Fixed: issue on collection management.
- Updated: dev dependencies.