some like this where I can add tasks with an inline placeholder
Hello,
Gantt doesn’t have a feature of adding non-task rows. The dev team will add that feature in the future, but I cannot give you any ETA.
For now, you need to implement it manually by using the Gantt API and Javascript.
Here is an example of how it can be implemented:
https://snippet.dhtmlx.com/5/5668cfb07
thanks , that helps a lot
Can we open a text box inline instead of opening a modal
Hello,
To edit tasks in the grid, you need to add the inline editors:
https://docs.dhtmlx.com/gantt/desktop__inline_editing.html
Here are examples:
https://docs.dhtmlx.com/gantt/samples/?sample='07_grid/13_custom_mapping.html'&filter='inline%20edit'
If you want to open inline editors after adding a new task, you need to disable the details_on_create
config:
https://docs.dhtmlx.com/gantt/api__gantt_details_on_create_config.html
Then you can add the following code:
gantt.attachEvent("onAfterTaskAdd", function(id,item){
setTimeout(function(){
gantt.ext.inlineEditors.startEdit(id, 'text');
},20);
});
Here is the snippet:
the placeholders are missing in the snippets
like we wanted earlier
we still want the placeholders to be there but on adding a task in the snippet e are getting a modal
instead we want inline for it
Hello,
To add the placeholder task, you need to enable the placeholder_task
config:
https://docs.dhtmlx.com/gantt/api__gantt_placeholder_task_config.html
Then you need to call the code for opening the inline editor for all tasks expect placeholder tasks:
https://snippet.dhtmlx.com/27138jds
If you use a custom solution, you will need to check both for the placeholder task and the custom task type:
https://snippet.dhtmlx.com/6oegdknl