Zum Hauptinhalt springen

task_class

Description

Definiert die CSS-Klasse, die auf die Task-Balken angewendet wird

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

Parameters

  • start - (erforderlich) Date - das Datum, an dem eine Aufgabe beginnen soll
  • end - (erforderlich) Date - das Datum, an dem eine Aufgabe voraussichtlich abgeschlossen wird
  • task - (erforderlich) Task - das Task-Objekt

Returns

  • text - (string | void) - eine CSS-Klasse für das betreffende Element

Example

gantt.templates.task_class = function(start, end, task){return "";};
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.