Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148625 | Oct 28,2019 12:57 PM UTC | Nov 4,2019 11:13 AM UTC | JavaScript - EJ 2 | 5 |
![]() |
Tags: Gantt Chart |
[index.ts]
//........
//Start Date Calculation
let pStartDate = new Date("02/14/2019");
let today = new Date();
today.setHours(0, 0, 0, 0);
let diff = today.getTime() - pStartDate.getTime();
//End Date Calculation
let pEndDate = new Date(today);
pEndDate.setTime(pEndDate.getTime() + diff);
//........
let gantt: Gantt = new Gantt({
//........
projectStartDate: pStartDate,
projectEndDate: pEndDate,
eventMarkers: [
{
day: today,
label: "Today"
}
],
dataBound: function(args) {
if (args.hasOwnProperty("isGanttCreated")) {
this.scrollToDate(today);
}
}
//........ |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.