तरीका PickerBuilder.setOrigin
पिकर डायलॉग का ऑरिजिन सेट करता है. अगर आपका ऐप्लिकेशन किसी iframe में चल रहा है, तो ऑरिजिन को सबसे ऊपर मौजूद पेज के window.location.protocol + '//' + window.location.host पर सेट किया जाना चाहिए.
हस्ताक्षर
setOrigin(origin: string): PickerBuilder;
विवरण
वैकल्पिक |
नहीं |
फ़ाइनल |
नहीं |
सुरक्षित सेक्स |
नहीं |
स्थिर |
नहीं |
पैरामीटर
नाम |
टाइप |
वैकल्पिक |
ब्यौरा |
origin |
string |
नहीं |
|
रिटर्न
PickerBuilder
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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."]]],[]]