الطريقة PickerBuilder.setOrigin
لضبط مصدر مربّع حوار المنتقي. يجب ضبط المصدر على
window.location.protocol + '//' + window.location.host للصفحة العلوية
، إذا كان تطبيقك قيد التشغيل في إطار iframe.
التوقيع
setOrigin(origin: string): PickerBuilder;
التفاصيل
اختياري |
لا |
النهائي |
لا |
الحماية |
لا |
ثابت |
لا |
المعلمات
الاسم |
النوع |
اختياري |
الوصف |
origin |
string |
لا |
|
المرتجعات
PickerBuilder
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-07 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-07 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Sets the origin of the picker dialog, crucial for applications running in iframes to ensure proper functionality by specifying the top-most page's origin."],["The `setOrigin` method requires a single, mandatory parameter: `origin`, which is a string representing the desired origin."],["This method is not optional, final, protected, or static, offering flexibility in its implementation."],["Using this method returns a `PickerBuilder` instance, enabling further configuration of the picker dialog."]]],[]]