it is possible to add Split a task by assigning a start and end date
it is possible to add Split a task by assigning a start and end date
Hi,
Please can you tell me how I can add tasks.
In this case :
1.- I selected a task
2.- I show my form
3 .- I add 3 objects with the following formats:
4.- When I click on the SAVE button, the list of segments applies to the TASK.
Is there an event or method?
Different from this method :
Or
Can you tell me how to configure the method to add many segments?
attached image.
thanks.
Please can you tell me how I can add tasks.
In this case :
1.- I selected a task
2.- I show my form
3 .- I add 3 objects with the following formats:
Code: Select all
{
"Id" : 1,
"StartDate" : "2017-01-17",
"EndDate" : "2017-01-19"
"Duration" : 2
},
{
"Id" : 2,
"StartDate" : "2017-01-20",
"EndDate" : "2017-01-22"
"Duration" : 2
}
Is there an event or method?
Different from this method :
Code: Select all
splitTask: function() {
var a = this,
e = a.grid.getSchedulingView(),
d = e.getDateFromX(a.triggerEventXY[0]),
c = e.timeAxis;
var b = {
task: a.rec,
pos: a.triggerEventXY,
date: d,
timeAxis: c,
tick: c.getAt(Math.floor(c.getTickFromDate(d)))
};
b.task.split(a.getSplitDate(b), a.getSplitDuration(b), a.getSplitDurationUnit(b))
}
Can you tell me how to configure the method to add many segments?
attached image.
thanks.
- Attachments
-
- Is there an event or method?
- segment2.png (93.06 KiB) Viewed 2599 times
Re: it is possible to add Split a task by assigning a start and end date
You can probably implement this yourself, by using our Splittable API. https://www.bryntum.com/docs/gantt-for- ... Splittable
Note the 'split' API method: https://www.bryntum.com/docs/gantt-for- ... thod-split
Note the 'split' API method: https://www.bryntum.com/docs/gantt-for- ... thod-split
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog
@bryntum
Facebook
API documentation
@bryntum
API documentation