copy

creates a deep copy of provided object

object copy(object initialObject);
initialObjectobjectthe object that needs to be copied
objecta deep copy of provided object

Example

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

Change log

added in version 4.0

Back to top