روش PickerBuilder.enableFeature، روش PickerBuilder.enableFeature
یک ویژگی انتخابگر را فعال کنید.
نمونه ها
استفاده اساسی
const builder = new google.pickerPickerBuilder()
.enableFeature(google.picker.Feature.MULTISELECT_ENABLED)
.enableFeature(google.picker.Feature.MINE_ONLY);
امضا
enableFeature(feature: Feature): PickerBuilder;
جزئیات
اختیاری | خیر |
---|
نهایی | خیر |
---|
محافظت شده است | خیر |
---|
استاتیک | خیر |
---|
پارامترها
نام | تایپ کنید | اختیاری | توضیحات |
---|
feature | Feature | خیر | |
برمی گرداند
PickerBuilder
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-12 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-12 بهوقت ساعت هماهنگ جهانی."],[[["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."]]],[]]