Wybór metod
Włącz funkcję selektora.
Przykłady
Podstawowe użycie
const builder = new google.pickerPickerBuilder()
.enableFeature(google.picker.Feature.MULTISELECT_ENABLED)
.enableFeature(google.picker.Feature.MINE_ONLY);
Podpis
enableFeature(feature: Feature): PickerBuilder;
Szczegóły
Opcjonalnie |
Nie |
Finał |
Nie |
Chroniony |
Nie |
Statyczny |
Nie |
Parametry
Nazwa |
Typ |
Opcjonalnie |
Opis |
feature |
Feature |
Nie |
|
Zwroty
PickerBuilder
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-09 UTC.
[null,null,["Ostatnia aktualizacja: 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."]]],["The `enableFeature` method within the `PickerBuilder` class allows specific features to be activated. It takes a mandatory `feature` parameter of the `Feature` type. For example, `MULTISELECT_ENABLED` and `MINE_ONLY` features can be enabled. This method is not optional, final, protected, or static, and it returns a `PickerBuilder` object. This allows the configuration of picker capabilities.\n"]]