Zum Hauptinhalt springen

onTaskFormRender

Description​

Fires when the advanced task form opens or is rebuilt

onTaskFormRender: (taskId: string | number, api: TaskFormExt) => void

Parameters​

  • taskId - the ID of the task being edited
  • api - the advanced task form API, gantt.ext.taskForm

Example​

gantt.attachEvent("onTaskFormRender", function (taskId, api) {
console.log(taskId, api.getActiveTab());
});

Details​

Requires the advanced task form. The form is open and populated when the event fires. It also fires after an open form is rebuilt, for example when the user changes the task type.

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.