Skip to main content

copy

Description​

Creates a deep copy of provided object

copy: (initialObject: any) => any

Parameters​

  • initialObject - (required) object - the object that needs to be copied

Returns​

  • clonedObject - (object) - a deep copy of provided object

Example​

var backupTask = gantt.copy(gantt.getTask(id));

Change log​

  • added in version 4.0
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.