Hello,
Is it possible to create project also from the create button ?
Thanks in advance.
Hello Terence,
I want to add new button in gantt view 'create project'
so when i click on that then able to add new project inside gantt view(like task)
{
color : 'b-green',
ref : 'addProjectButton',
icon : 'b-fa b-fa-plus',
text : 'Create Project',
tooltip : 'Create new project',
onAction : 'up.onAddProjectClick'
}
async onAddProjectClick() {
}
i have added button and related function like this in GanttToolbar.js
but i have no idea how to create project inside backend and ganttview
A project is top(parent) node. You need to add it to the taskStore, the same as is done for create task and handle the update in the controller (backend). A project is regarded as a task without parent. You need to add a new node to the stores rootNode
gantt.taskStore.rootNode
.
The crudManager ProjectModel.js will then fire a change request towards the controller (def bryntum_gantt_update). In the controller you need to implement the saving of the project. Support on the implementation of the controller (backend) is out of the scope of forum support.
On the forum I can provide basic information about how you could approach this. If you need further support on this, you can contact sales@bryntum.com for professional support.