placeholder_task
Description
Adds an empty row into the end of the list of tasks to simplify tasks editing via keyboard
placeholder_task: any
Example
gantt.config.placeholder_task = true;
// or
gantt.config.placeholder_task = {
// moves focus to the placeholder task after adding a new task
focusOnCreate: true
};
Default value: false
Related samples
Details
- A placeholder task will be automatically added to the end of the task list.
- Once it's modified from the UI and received the gantt.updateTask() call, a new task will be added to the end of the list.
- A placeholder can be detected by its type value:
if(task.type == gantt.config.types.placeholder){
// do something
}
- Gantt will fire the onTaskCreated and onAfterTaskAdd events when placeholder is inserted.
- gantt.dataProcessor will fire the onBeforeUpdate event for the placeholder item, but won't produce any backend requests.