drag_link_class

사용자가 링크를 드래그할 때 표시되는 팝업에 적용되는 CSS 클래스를 정의합니다.

fromstring|number소스 작업의 ID
from_startboolean소스 작업의 시작 부분에서 링크가 드래그되는 경우 true, 끝 부분에서인 경우 false
tostring|number대상 작업의 ID (대상 작업이 아직 설정되지 않은 경우 'null' 또는 'undefined')
to_startboolean대상 작업의 시작 부분으로 링크가 드래그되는 경우 true, 끝 부분으로인 경우 false

Example

gantt.templates.drag_link_class = function(from, from_start, to, to_start) {
    let add = "";
    if(from && to){
        const allowed = gantt.isLinkAllowed(from, to, from_start, to_start);
        add = (allowed ? "gantt_link_allow" : "gantt_link_deny");
    }
    return `gantt_link_tooltip ${add}`;
};

See also
Back to top