In GAS, I want to place HTML content inside tabs like what is described here.
I built a working prototype in this jsFiddle. (Since the code is HTML, it does not rende
Finally had time to fiddle with your code, after some time in the page you get a error from the server stating that the file "bootstrap.min" was denied. So I created a file "bootstrap.html", copied all of its content to this file, surrounded with script tags, included it in the HTML and voilá, it's working.
The list of changes:
in any code.gs
function include(filename) {
return HtmlService.createHtmlOutputFromFile(filename)
.setSandboxMode(HtmlService.SandboxMode.IFRAME)
.getContent();
}
in the mainPage.html
!= include('bootstrap'); ?>
The doGet now must use createTemplateFromFile
and evaluate()
function doGet(e) {
return HtmlService.createTemplateFromFile('mainPage').evaluate()
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
}
And an file with all bootstrap surrounded by script
tags.