Show a spinner on the document editor

Hello,

I actually want to be able to show a spinner programmatically on the document editor.

Thanks,

1 Reply 1 reply marked as answer

SM Suriya Murugan Syncfusion Team March 3, 2021 11:03 AM UTC

Hi Omar, 

Syncfusion Greetings! 

For your convenient, we have prepared sample to create spinner in DocumentEditor. In below sample, we have used it in export API(line no:  67 & 69). You can use it based on your requirement. 

1.      You have to create div for spinner. 
2.      Have to create spinner using below code snippet: 
  createSpinner({ 
  // Specify the target for the spinner to show 
  target: document.getElementById('spinner') 
}); 

3.      Show hide using below code snippet: 
showSpinner(document.getElementById('spinner')); 
 
 
hideSpinner(document.getElementById('spinner')); 



Please let us know if you have any questions. 

Regards, 
Suriya M. 


Marked as answer
Loader.
Up arrow icon