Methode PickerBuilder.enableFeature
Aktivieren Sie eine Auswahlfunktion.
Beispiele
Grundlegende Nutzung
const builder = new google.pickerPickerBuilder()
.enableFeature(google.picker.Feature.MULTISELECT_ENABLED)
.enableFeature(google.picker.Feature.MINE_ONLY);
Unterschrift
enableFeature(feature: Feature): PickerBuilder;
Details
Optional |
Nein |
Finale |
Nein |
Geschützt |
Nein |
Statisch |
Nein |
Parameter
Name |
Typ |
Optional |
Beschreibung |
feature |
Feature |
Nein |
|
Gibt Folgendes zurück:
PickerBuilder
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-11-09 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-11-09 (UTC)."],[[["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."]]],[]]