Método PickerBuilder.enableFeature
Ativar um recurso de seletor.
Exemplos
Uso básico
const builder = new google.pickerPickerBuilder()
.enableFeature(google.picker.Feature.MULTISELECT_ENABLED)
.enableFeature(google.picker.Feature.MINE_ONLY);
Assinatura
enableFeature(feature: Feature): PickerBuilder;
Detalhes
Opcional |
Não |
Final |
Não |
Protegido |
Não |
Estático |
Não |
Parâmetros
Nome |
Tipo |
Opcional |
Descrição |
feature |
Feature |
Não |
|
Retorna
PickerBuilder
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-11-09 UTC.
[null,null,["Última atualização 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."]]],[]]