본문으로 건너뛰기

resetSkin

Description

관련 첨부 스킨 CSS 파일의 설정을 재계산합니다

resetSkin: () => void

Example

function changeSkin(name){
var file = name != "terrace" ? ('_' + name) : "";
var link = document.createElement("link");
link.onload = function(){
gantt.resetSkin(); /*!*/
};

link.rel="stylesheet";
link.type="text/css";
link.id = "skin";
link.href = "../../codebase/dhtmlxgantt"+file+".css";
document.head.replaceChild(link, document.querySelector("#skin"));
}

changeSkin('meadow');

Details

노트

스킨을 동적으로 변경할 때에만 사용됩니다

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.