Replicate tab Panel in GUI Builder google apps

后端 未结 2 677
陌清茗
陌清茗 2020-12-20 07:03

I think I\'ve seen this answer, but I can\'t remember where for certain.

I\'m trying to to create a tabbed panel interface using the GUI Builder, but don\'t see that

2条回答
  •  不知归路
    2020-12-20 07:17

    The following code makes the tabs, based on the array you put in, dynamically:

    function doGet() {
        // create application
        var app = UiApp.createApplication();
    
        // set array
        var aTabs = ['donald','katrijn','dagobert'];                                                         
    
        // create tab panel
        var pTab = app.createTabPanel();                                                
    
        // add tabs to panel
        for(var k=0; k

    See link for tabPanel reference.

    Publishing your script as a web-app, allows you to insert the script on a google sites.

提交回复
热议问题