Hi,
I want to calculate start date of tasks using scheduling engine, but is not working.
Result: null, 2000-01-01, 2000-01-01
Excepted: 2000-01-01, 2000-01-01, 2000-01-10
NB: I can't use SchedulerProProjectMixin because it is using window.
// import { SchedulerProProjectMixin } from './lib/Engine/quark/model/scheduler_pro/SchedulerProProjectMixin.js';
// const project = new SchedulerProProjectMixin();
import { SchedulerCoreProjectMixin } from './lib/Engine/quark/model/scheduler_core/SchedulerCoreProjectMixin.js';
const project = new SchedulerCoreProjectMixin();
project.loadInlineData({
eventsData: [
{
name: 'All Tasks',
id: 'all',
children: [
{ id: 't1', name: 'Task 1', startDate: '2000-01-01', endDate: '2000-01-10' },
{ id: 't2', name: 'Task 2', startDate: '2000-01-01', endDate: '2000-01-10' }],
}
],
dependenciesData: [
{
id: 't1', fromEvent: 't1', toEvent: 't2',
}
],
}).then((res) => {
project.eventStore.forEach(element => {
console.log(element.startDate);
});
}).catch((err) => {
});