How can I create a progress spinner using HtmlService?

后端 未结 1 1858
谎友^
谎友^ 2020-12-18 15:14

In scriptUi I was able to follow these instructions to create a simple progress spinner for long waits: https://sites.google.com/site/scriptsexamples/learn-by-example/uiapp-

1条回答
  •  青春惊慌失措
    2020-12-18 15:39

    I found a method. The trick was to call an internal function that both starts the spinner and runs the other function.

    html

    
    
    
    
    

    gs file

    function testSpinner(){
     SpreadsheetApp.getActiveSpreadsheet().toast("Copying...","",-1);
      Utilities.sleep(5000);
     SpreadsheetApp.getActiveSpreadsheet().toast("Done.");
    }
    

    0 讨论(0)
提交回复
热议问题