link_description

Gibt den Text im Header des Bestätigungsfensters "Löschen" des Links an

linkobjectDas Link-Objekt

Example

gantt.templates.link_description = function(link){
    const from = gantt.getTask(link.source);
    const to = gantt.getTask(link.target);
    const types = gantt.config.links;
 
    const from_start = link.type == types.start_to_start;
    const to_start = link.type == types.finish_to_start ||  
                    link.type == types.start_to_start;
    return `Von <b>${from.text}</b> ${(from_start?"Start":"Ende")}<br/>
Zu <b>${to.text}</b> ${(to_start ? "Start" : "Ende")}<br/>`;
};

See also
Zurück nach oben