Zum Hauptinhalt springen

setParent

Description

Den Elternteil für eine Aufgabe festlegen

setParent: (task: Task, pid: number | string) => void

Parameters

  • task - (erforderlich) Task - das Task-Objekt
  • pid - (erforderlich) number | string - die ID der übergeordneten Aufgabe

Example

gantt.setParent(gantt.getTask(2), 20);
gantt.updateTask(2);
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.