跳到主要内容

resetSkin

Description

根据相关附带的 skin 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.