संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > मेन्यू > रेंडर
मेन्यू DOM बनाता है.
हस्ताक्षर:
render(container: Element): HTMLDivElement;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
कंटेनर |
एलिमेंट |
वह एलिमेंट जिस पर यह मेन्यू जोड़ना है. |
लौटाए जाने वाले प्रॉडक्ट:
HTMLDivElement
मेन्यू का रूट DOM एलिमेंट.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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 `render()` method, part of a Menu class, creates the menu's DOM (Document Object Model). It accepts a single parameter, `container`, which is an Element specifying where the menu should be appended. The method returns an `HTMLDivElement`, representing the root DOM element of the newly created menu. This method's key action is to generate and attach the menu's visual structure to the specified container within the document.\n"]]