resetSkin

re-calculates the skin's settings from the related attached skin CSS file

void resetSkin();

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');

Related samples

Details

Used only if you change the skin dynamically

Back to top