Skip to main content

silent

Description​

Makes all code inside it not to trigger internal events or server-side calls

silent: (callback: GanttCallback) => void

Parameters​

  • callback - (required) function - the callback function

Example​

gantt.silent(function () {
// the task will be deleted only from the client side
// the gantt won't repaint it automatically
gantt.deleteTask(id);
});

// repaint the gantt manually when ready
gantt.render();

Details​

A task moved inside silent(), for example with moveTask() or by changing its parent, doesn't fire the onBeforeTaskMove and onAfterTaskMove events, isn't added to the undo history, and isn't sent to the server.

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.