开发者

Html support in Google Apps Script UI Services Widgets?

开发者 https://www.devze.com 2023-02-19 08:06 出处:网络
As far I can tell, none of the Widgets in UI Services can display formatted HTML.GWT provides RichTextArea.setHTML() and Labe开发者_开发技巧l.HTML to display formatted HTML, but these aren\'t availabl

As far I can tell, none of the Widgets in UI Services can display formatted HTML. GWT provides RichTextArea.setHTML() and Labe开发者_开发技巧l.HTML to display formatted HTML, but these aren't available through the App Script UI Services.

Am I missing something?


I believe this is coming soon. Look at the google response on this bug:

Comment 21 by project member asora...@google.com, Feb 7

Hey Everyone,

Quick update: A support for a subset of HTML tags is going to be added to UiApp within 2-3 weeks!

Best, Anton

UPDATE As of Mar 7 this feature has been implemented. This is the list for supported tags:

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

Related docs: https://developers.google.com/apps-script/class_html

0

精彩评论

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

关注公众号