שיטת PickerBuilder.setOrigin
הגדרת המקור של תיבת הדו-שיח לבחירה. אם האפליקציה פועלת ב-iframe, צריך להגדיר את המקור כ-window.location.protocol + '//' + window.location.host של הדף העליון.
חתימה
setOrigin(origin: string): PickerBuilder;
פרטים
אופציונלי |
לא |
גמר |
לא |
מוגן |
לא |
סטטי |
לא |
פרמטרים
שם |
סוג |
אופציונלי |
תיאור |
origin |
string |
לא |
|
החזרות
PickerBuilder
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-07 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-07 (שעון UTC)."],[[["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."]]],[]]