Hi,
At present effort is coming from parent task's effort.
How can I get the effort to be calculated like "effort = duration x hoursPerDay", whenever duration got changed
Thanks
You can override calculateEffort
method of the https://bryntum.com/docs/gantt/#Gantt/model/TaskModel to implement any custom logic you need.
Here is how the method looks out of the box:
* calculateEffort () : CalculationIterator<Duration> {
const childEvents : Set<HasEffortMixin> = yield this.$.childEvents
if (childEvents.size > 0)
return yield* this.calculateTotalChildrenEffort()
else {
const proposed = yield ProposedOrPrevious
return proposed !== undefined ? proposed : yield* this.calculateEffortPure()
}
}