I am trying to implement a custom js component (https://frappe.github.io/gantt/) on cuba, I have managed to make it show, however am stuck on how i can attach it to a collection datasource.
this is basically the bare implemenation:
var tasks = [
id: ‘Task 1’,
name: ‘Redesign website’,
dependencies: ‘Task 2, Task 3’
var gantt = new Gantt(element, tasks);
Is there a way i can get the tasks json through the state as a json?
Thanks in advance.