Can Bootstrap.js be used in GAS (Google Apps Script)?

前端 未结 2 917
有刺的猬
有刺的猬 2021-02-09 06:56

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

2条回答
  •  無奈伤痛
    2021-02-09 07:36

    You don't need to copy the bootstrap JS into a GAS HTML file, it works if you change the URLs you were using to pull in Bootstrap with mainPage.HTML:

    
    
    
        
    
    
    
        
        
    Lorem ipsum dolor sit amet
    consectetur adipiscing elit,
    sed do eiusmod tempor incididun
    ut labore et dolore magna aliqua

    and in your code.gs

    function doGet(e) {
      return HtmlService
        .createHtmlOutputFromFile('mainPage')
        .setSandboxMode(HtmlService.SandboxMode.IFRAME);
    }
    

    Here's the app, and here's the script.

    P.S. Thanks for the original POST I've now got a nice pretty web app!

提交回复
热议问题