开发者

Display HTML-formated message box in Google Apps Script?

开发者 https://www.devze.com 2022-12-28 21:04 出处:网络
The Browser.msgBox(\"hello\")开发者_如何学JAVA method lets me display the text \"hello\" to the user in a message box, but if I put any HTML in there, for example \"Hi there\", the user just sees the

The Browser.msgBox("hello")开发者_如何学JAVA method lets me display the text "hello" to the user in a message box, but if I put any HTML in there, for example "Hi there", the user just sees the HTML tags.

Is there a way to display a popup with simple HTML to the user from withing google apps script?


If you want to display a more complex UI, check out the new UIApp service google added:

http://code.google.com/googleapps/appsscript/service_ui.html

The documentation is pretty sparse, so check out their examples:

http://code.google.com/googleapps/appsscript/guide_user_interfaces.html


You can also directly use UI.showModalDialog.

https://developers.google.com/apps-script/reference/base/ui#showModalDialog(Object,String)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号