Search code examples
javascriptdhtmlxgantt-chart

I override api_date of themplates in DHTMLX but it is not used?


In dhtmlx gantt, you can format input date (from string or any type) into javascript date. This date is used to draw chart. Base on the dhtmlx document, you can replace converter (api_date) by custom function:

I override the function as follow:

 gantt.templates.api_date = function(date){
    throw "It is called";
 };

but, it never is called.


Solution

  • api_date template and config are no longer used. We will update the information in the documentation. Please use xml_date as hadi.mansouri suggested.