This is my entire my-chart.js
import { Mongo } from ‘meteor/mongo’;
export const TasksCollection = new Mongo.Collection(“tasks”);
export const LinksCollection = new Mongo.Collection(“links”);
if (Meteor.isServer) {
Meteor.publish('tasks', function () {
return TasksCollection.find({userId: this.userId});
});
TasksCollection.allow({
insert: function (userId, doc) {
return true;
},
update: function (userId, doc, fieldNames, modifier) {
return true;
},
remove: function (userId, doc) {
return true;
}
});
}
if (Meteor.isClient) {
Meteor.startup(function () {
gantt.init("gantt_here");
gantt.meteor({tasks: TasksCollection, links: LinksCollection});
});
}
After clicking SAVE, nothing happens, or do I need to implement the callbacks? Since this article didnt mention having to do this and it should all work.
https://www.codeproject.com/Articles/1031343/Gantt-Chart-App-with-dhtmlxGantt-and-MeteorJS