gpt4 book ai didi

google-picker - Picker 说 setEnableSharedDrives() 不是函数

转载 作者:行者123 更新时间:2023-12-01 12:06:35 27 4
gpt4 key购买 nike

Picker reference 4月24日更新。子类 DocsView 现在有一个函数 setEnableSharedDrives(),但是 Picker 抛出异常并且不显示 View 。

这是一个示例代码:

var view = new google.picker.DocsView(google.picker.ViewId.FOLDERS);
view.setMode(google.picker.DocsViewMode.LIST);
view.setIncludeFolders(true);
view.setSelectFolderEnabled(true);
view.setEnableSharedDrives(true);

var picker = new google.picker.PickerBuilder()
.addView(view)
.enableFeature(google.picker.Feature.NAV_HIDDEN)
.enableFeature(google.picker.Feature.SUPPORT_DRIVES)
.hideTitleBar()
.setSelectableMimeTypes("application/vnd.google-apps.folder")
.setOAuthToken(token)
.setDeveloperKey(DEVELOPER_KEY)
.setCallback(pickerCallback)
.setOrigin(google.script.host.origin)
.setSize(DIALOG_DIMENSIONS.width - 2,
DIALOG_DIMENSIONS.height - 2)
.build();

picker.setVisible(true);

最佳答案

将 setEnableSharedDrives 更改为 setEnableDrives

关于google-picker - Picker 说 setEnableSharedDrives() 不是函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55938355/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com