user interface - HTML file in UiApp Google Apps Script -
i working on small google apps script , right stuck because made google picker in html file can't access in uiapp application.
i tried this...
var ebutton = app.createhtml(htmlservice.createtemplatefromfile('googlepicker.html').evaluate());
...but it's not working. there way build html within uiapp?
function doget() { var app = uiapp.createapplication().settitle('blueturbo'); var ebutton = app.createhtml(htmlservice.createtemplatefromfile('googlepicker.html').evaluate()); // create grid 3 text boxes , corresponding labels var grid = app.creategrid(3, 3); // text entered in text box passed in id grid.setwidget(0, 0, app.createlabel('folder id : ')); grid.setwidget(0, 1, app.createtextbox().setname('id')); grid.setwidget(0, 2, ebutton); // text entered in text box passed in name. grid.setwidget(2, 0, app.createlabel('nom : ')); grid.setwidget(2, 1, app.createtextbox().setname('name')); // text entered in text box passed in emails grid.setwidget(1, 0, app.createlabel('emails : ')); grid.setwidget(1, 1, app.createtextbox().setname('emails')); [...] //more code return app; }
you can't mix uiapp , html service in same script.
you can use drive showdocspicker() described here instead.
in doc can read :
using uiapp's html widget it's possible add custom html markup application. there restrictions on type of content can added widget however, , following set of html tags can used: b, blockquote, body, br, center, caption, cite, code, div, em, h1, h2, h3, h4, h5, h6, hr, i, label, legend, li, ol, p, span, strong, sub, sup, table, tbody, td, thead, title, tr, tt, ul take advantage of full set of html features, consider using html service build user interface instead of uiapp.
Comments
Post a Comment