I have a piece of code
this.domNode.classList.add('widget-loading');
which is adding a spin wheel. Now I want to sustain the spin wheel for 10 seconds. I tried the below which dint work.
setTimeout(function(){ this.domNode.classList.add('widget-loading')},10000);
Could anyone help me out with this?
Thanks
Although I am not familiar with classList, I suggest to try this: