रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
blockly > इवेंट > VarRename
Events.VarRename क्लास
यह सुनने वालों को बताता है कि किसी वैरिएबल मॉडल का नाम बदल दिया गया है.
हस्ताक्षर:
export declare class VarRename extends VarBase
इनमें शामिल है: VarBase
निर्माता
प्रॉपर्टी
प्रॉपर्टी |
मॉडिफ़ायर |
टाइप |
ब्यौरा |
newName? |
|
स्ट्रिंग |
(ज़रूरी नहीं) वैरिएबल का नया नाम. |
oldName? |
|
स्ट्रिंग |
(ज़रूरी नहीं) वैरिएबल का पिछला नाम. |
type |
|
EventType |
|
तरीके
तरीका |
मॉडिफ़ायर |
ब्यौरा |
run(forward) |
|
वैरिएबल का नाम बदलने वाला इवेंट चलाएं. |
toJson() |
|
इवेंट को JSON के तौर पर कोड में बदलें. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-05-16 (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-05-16 (UTC) को अपडेट किया गया."],[[["The `Blockly.Events.VarRename` class handles events related to renaming variable models within Blockly workspaces."],["It extends the `Blockly.Events.VarBase` class and includes properties for the old and new variable names."],["Developers can use the `run` method to execute a variable rename event and `toJson` for serialization."],["Instances of this class are created with a constructor accepting the variable and its new name."]]],["The `VarRename` class, extending `VarBase`, notifies listeners about variable model renames. It is constructed with an optional variable and new name. Key properties include `newName` and `oldName` (both optional strings) to track the variable's name change. The class also defines the `type` property. Core methods include `run(forward)` to execute the rename and `toJson()` to convert the event into JSON format.\n"]]