Перейти к основному содержимому

task_class

Description​

CSS-класс, который будет применяться к полосам задач

task_class: (start: Date, end: Date, task: Task) => string | void;

Parameters​

  • start - (обязательно) Date - дата начала запланированной задачи
  • end - (обязательно) Date - дата окончания запланированной задачи
  • task - (обязательно) Task - объект задачи

Returns​

  • text - (string | void) - CSS класс, который будет назначен элементу

Example​

gantt.templates.task_class = (start, end, task) => '';
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.