I have built Gantt chart using VF Page and I am using Apex custom controller to support the VisualForce page.
I am using tooltip function to view task title, start date and end dates respectively. Here is the function:
gantt.templates.tooltip_text = function(start,end,task){
return "<b>Title:</b> "+task.text+"<br/><b>Start date:</b> " +
gantt.templates.tooltip_date_format(start)+
"<br/><b>End date:</b> "+gantt.templates.tooltip_date_format(end);
};
Now, I want to show the count of child records as well in the tooltip when hovered on any child Project. Is there anyway that i can add a custom column in gantt chart and use that in Tootlip. The custom column will be similar to the following:
task.ContactCount = JSON[key]["Contact_Count__c"];
The above column needs to be displayed in the tooltip function so that I can display the Contact Count when hovered on any task.
Can anyone please let me know how to achieve the above functionality.
Thanks!