Our state of the art Gantt chart


Post by ahmed.farahat »

i am not sure how to catch an event firing on the task store i want to listen to the "update" event on the task store i have the code below but i dont see the event being fired, is there anything wrong in the code below

const project = {
  stm: {
    autoRecord: true,
  },
  transport: {
    load: {
      url: "data/launch-saas.json",
    },
    sync: {
      url: "https://localhost:5000/sync",
    },
  },

  autoLoad: true,
  taskStore: {
    WbsMode: "auto",
    listeners: {
      update: () => {
        console.log("updated");
      },
    },
  },
};

Post by tasnim »

Hi ahmed.farahat,
Your code looks okay. Don't know why you're facing this. Could you please provide us a runnable test case so we can reproduce and debug it? The assistance will become faster if you could provide us a runnable test case.

Good Luck :),
Tasnim


Post by ahmed.farahat »

Thanks Tasnim,

When i tried to reproduce the problem on the basic demo example it worked, so i assume something is conflicting in the code i have, i will try to find that out, you can close this ticket thanks


Post Reply