UiApp has been deprecated. Please use HtmlService instead

前端 未结 1 1437
栀梦
栀梦 2021-02-13 19:08

I have a google script that I\'m using in google spreadsheet to export some data from there. Recently they update the spreadsheet and I\'m getting this error:

相关标签:
1条回答
  • 2021-02-13 19:45

    Starting point:

    function openDialog() {
      var html = HtmlService.createHtmlOutputFromFile('export');
      SpreadsheetApp.getUi()
          .setWidth(640)
          .setHeight(400)
          .showModalDialog(html, 'Export');
    }
    

    Docs: https://developers.google.com/apps-script/guides/html/

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