gantt icon indicating copy to clipboard operation
gantt copied to clipboard

What are the data types for each item in the task list? Is the example complete?

Open liaowentao1016 opened this issue 1 year ago • 1 comments

liaowentao1016 avatar Aug 18 '23 03:08 liaowentao1016

See https://github.com/frappe/gantt/blob/master/README.md https://frappe.io/gantt and in particular custom_popup_html

	// can be a function that returns html
	// or a simple html string
	custom_popup_html: function(task) {
	  // the task object will contain the updated
	  // dates and progress value
	  const end_date = task._end.format('MMM D');
	  return `
		<div class="details-container">
		  <h5>${task.name}</h5>
		  <p>Expected to finish by ${end_date}</p>
		  <p>${task.progress}% completed!</p>
		</div>
	  `;
	}
});````

m50S79sM6SRNp8Jn avatar Aug 19 '23 09:08 m50S79sM6SRNp8Jn