संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकले > इवेंट > CommentMove > setReason
किसी आइटम को एक से दूसरी जगह ले जाने के इवेंट की वजह सेट करता है.
हस्ताक्षर:
setReason(reason: string[]): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
वजह |
string[] |
यह बदलाव क्यों हो रहा है? 'ड्रैग', 'बंप', 'स्नैप', ... |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The `setReason()` method within the `Events.CommentMove` class configures the reason behind a comment's movement. It accepts a `string[]` named `reason` as a parameter, which details why the move is occurring. Examples of reasons include 'drag', 'bump', or 'snap'. This method does not return any value, indicated by `void`. The method essentially labels the motive for a comment move event.\n"]]