Skip to main content

ignore_time

Description

Hides a time unit in the time scale

ignore_time: GanttCallback

Example

// 0 refers to Sunday, 6 - to Saturday
gantt.ignore_time = function(date){
if(date.getDay() == 0 || date.getDay() == 6)
return true;
};

Details

The ignore_time method is a function that takes the cell's date as a parameter. To hide a unit - return true for it.

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.