Skip to main content

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

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
}