संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > FieldImage > setOnClickHandler
फ़ील्ड इमेज.setOnClickHandler() मेथड
इस इमेज पर क्लिक करने पर कॉल किया जाने वाला फ़ंक्शन सेट करें.
हस्ताक्षर:
setOnClickHandler(func: ((p1: FieldImage) => void) | null): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
func |
((p1: FieldImage) => अमान्य) | शून्य |
इमेज पर क्लिक करने पर कॉल किया जाने वाला फ़ंक्शन या हटाने के लिए शून्य. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The `setOnClickHandler` method within the `FieldImage` class sets a function to be executed when an image is clicked. It accepts a single parameter, `func`, which can be a function taking a `FieldImage` object as input or `null` to remove any existing click handler. This method has no return value. The provided function is activated upon a user clicking the associated image within the interface.\n"],null,[]]