How to run some code before gantt.templates.task_text start to execute

Hi, I’m doing some operations inside gantt.templates.task_text, just before the callback run I want to run some other code(not for all tasks, just before gantt.templates.task_text starts to execute like mouse hover, on scroll… those scenarios I want to reset some property). is there any API available for that?

I tried task_row_class which runs after task_text, in my case i want to run before task_text

Hello,

Try using onBeforeDataRender or onTaskLoading events, which fire before the task_text template.

Could you please describe the scenario in more detail?