-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to find the critical task #355
Comments
What you mean by critical task? function findCriticalTaskId( gstc ){
const allTasks = gstc.api.getAllItems();
let lastTime = 0, lastTimeTaskId = '';
for(const taskId in allTasks){
const currentTask = allTasks[taskId];
if( currentTask.time.end > lastTime ){
lastTime = currentTask.time.end;
lastTimeTaskId = taskId;
}
}
return lastTimeTaskId;
} |
sorry ,I didn't describe it clearly,I really want to find critical path |
Hi, have you find the way of showing the critical path ? If yes, could you please tell me how ? Thanks.
|
I have implemented the display function of critical path,but not through gantt-schedule-timeline-calendar,by using Apose.Tasks, the backend calculates critical paths,and the front-end is responsible for displaying them
|
No description provided.
The text was updated successfully, but these errors were encountered: