Skip to main content

onTemplatesReady

Description

Fires when the dhtmlxGantt templates are initialized

onTemplatesReady: () => void;

Example

gantt.attachEvent("onTemplatesReady", function(){
//any custom logic here
});

Details

The event informs that templates of dhtmlxGantt are ready. The event is a good point for creating a custom view.

It's a good practice to write the code of custom view creation in the handler of the onTemplatesReady event. It will guarantee that the custom view's templates will be ready before grid initialization, and a custom view will be correctly rendered on the page.

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.