[INFO REQ] Adding project name and putting all tasks under the project name
Posted: Fri Jun 18, 2021 9:44 am
by jeanbaptiste.minani
Hello Support Team.
I was wondering if the Bryntum Gantt can support a way of listing tasks but starting from the project name, where project name will be on top (and not editable) and then other tasks will be placed under that project, in the same way/order we see on parent tasks and sub-tasks.
Any help/hint it will be helpful.
Re: [INFO REQ] Adding project name and putting all tasks under the project name
Posted: Fri Jun 18, 2021 9:45 am
by mats
Can you please show a mockup / screenshot of how it should look?
Re: [INFO REQ] Adding project name and putting all tasks under the project name
Posted: Fri Jun 18, 2021 1:00 pm
by jeanbaptiste.minani
Want to have:
Project name and to be read-only
Create button tot add new task as a sub-task of Project name
No task is allowed to be at level 1 (level of Project name). all task must be under it.
I've attached the sample UI of bruyntum gantt, about the way we want it to be.
Re: [INFO REQ] Adding project name and putting all tasks under the project name
Posted: Fri Jun 18, 2021 2:56 pm
by saki
Technically, there is no internal logic that would prevent store(s) to be read/write and multilevel tree. However, you can remove the UI elements that allow user to create an undesirable structure. For that:
You can implement a code that would prevent editing the first task. You can name it according to our needs, e.g. it can be "Project Name" but it must be present. It is the first task in the taskStore
Yes, the button handler would add a child of the first node.
No way to prevent it on data-level but you can prevent user from doing it.