OrgChart JS v8.12.13

Released: Oct 22, 2023

Updates in v8.12.13

Features

  • Added undo/redu functionallity
    • New Icons
      • OrgChart.icon.undo and OrgChart.icon.redo.
    • New Methods
      • undo - Undo data operations like adding/removing nodes. Set undoRedoStorageName option before calling this method.
      • redo - Redo data operations like adding/removing nodes. Set undoRedoStorageName option before calling this method.
      • clearRedo() - Clears all Redo stack steps.
      • clearUndo() - Clears all Undo stack steps.
      • undoStepsCount() - Returns the number of Undo stack steps.
      • redoStepsCount() - Returns the number of Redo stack steps.
    • New Interface
      • undoRedoStorageName - Set the session storage name to use undo/redo functionallity.
    • New Option
      • undoRedoUI.
  • New Event Listener
    • onUpdated - Occurs when new nodes are added, removed, updated or imported. Also when a slink or clink is added or removed and after undo or redo operations. Use this event listener to synch your server side database with this.config.nodes, this.config.clinks, this.config.slinks etc.
  • Breaking changes
    • If you are using one of the following event listeners in your code: adding, added, removed, please replace them with onUpdated.