【发布时间】:2019-05-06 13:50:24
【问题描述】:
我的任务是提供电子表格中的数据。有奖品有多个职位。我想使用 html 模板和 HtmlService 将它提供给用户
我已经准备好带有我想要提供数据的地方的 html 模板。 我编写了从 googleSheet 收集数据并存储在对象中的脚本。
谷歌应用环境中的js:
var htmlOutput = HtmlService
.createHtmlOutputFromFile('kosztorys.html')
.setWidth(500)
.setHeight(550)
SpreadsheetApp.getUi().showModelessDialog(htmlOutput, 'Some title');
我现在很困惑,不知道该怎么办。我已经尝试了一些在互联网上找到的解决方案,但它不起作用。如何将数据放入模板?
【问题讨论】:
标签: html json google-apps-script