如何在 google datastudio appscript 中隐藏密码字段?
How do i hide password field in google datastudio appscript?
我正在制作一个 datastudio appscript 连接器。用户必须提供用户名和密码,但当他在输入字段中键入时密码是可见的。我如何隐藏它。我试着查看文档,但没有找到任何东西。
var cc = DataStudioApp.createCommunityConnector();
var fields = cc.getFields();
var types = cc.FieldType;
var aggregations = cc.AggregationType;
config
.newTextInput()
.setId('uname')
.setName('username')
.setHelpText('Your Database username')
.setPlaceholder('Enter username')
config
.newTextInput() // I want to hide this field
.setId('pass')
.setName('pass')
.setHelpText('Your Database Password')
.setPlaceholder('Enter Password')
截至撰写本文时(2021 年 7 月),TextInput
小部件当前不支持隐藏字符。这已在 Google 的问题跟踪器上报告:
https://issuetracker.google.com/issues/187082357
如果您真的希望 Google 优先处理此问题,请务必为其加注星标(仅发表评论几乎没有影响,重要的是加星数)。
我正在制作一个 datastudio appscript 连接器。用户必须提供用户名和密码,但当他在输入字段中键入时密码是可见的。我如何隐藏它。我试着查看文档,但没有找到任何东西。
var cc = DataStudioApp.createCommunityConnector();
var fields = cc.getFields();
var types = cc.FieldType;
var aggregations = cc.AggregationType;
config
.newTextInput()
.setId('uname')
.setName('username')
.setHelpText('Your Database username')
.setPlaceholder('Enter username')
config
.newTextInput() // I want to hide this field
.setId('pass')
.setName('pass')
.setHelpText('Your Database Password')
.setPlaceholder('Enter Password')
截至撰写本文时(2021 年 7 月),TextInput
小部件当前不支持隐藏字符。这已在 Google 的问题跟踪器上报告:
https://issuetracker.google.com/issues/187082357
如果您真的希望 Google 优先处理此问题,请务必为其加注星标(仅发表评论几乎没有影响,重要的是加星数)。