Hi Team,
How to show the the task name on task bar as below attachment. please provide sample code.
Thank you.
Please see our basic demo: https://bryntum.com/products/gantt/examples/basic/
Hi,
StringHelper is a helper for string manipulation
https://bryntum.com/products/gantt/docs/api/Core/helper/StringHelper
Here is how you could import it in react typescript
import { StringHelper, TaskModel } from '@bryntum/gantt';
// config
taskRenderer({ taskRecord } : { taskRecord : TaskModel }) {
if (taskRecord.isLeaf && !taskRecord.isMilestone) {
return StringHelper.encodeHtml(taskRecord.name);
}
}