方法 PickerBuilder.enableFeature
启用选择器功能。
示例
基本用法
const builder = new google.pickerPickerBuilder()
.enableFeature(google.picker.Feature.MULTISELECT_ENABLED)
.enableFeature(google.picker.Feature.MINE_ONLY);
签名
enableFeature(feature: Feature): PickerBuilder;
详细信息
参数
返回
PickerBuilder
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-09。
[null,null,["最后更新时间 (UTC):2024-11-09。"],[[["The `enableFeature` method allows developers to activate specific features within the Google Picker, such as multi-select or restricting selections to the user's own files."],["It accepts a single parameter, `feature`, which specifies the feature to enable using the `google.picker.Feature` enumeration."],["This method is a part of the `PickerBuilder` class and can be chained with other builder methods for configuration."],["Calling `enableFeature` returns the `PickerBuilder` instance, allowing for further method chaining."]]],[]]