blockly > القائمة > العرض
لإنشاء عنصر DOM للقائمة
Signature:
render(container: Element): HTMLDivElement;
المعلمات
المَعلمة |
النوع |
الوصف |
الحاوية |
العنصر |
العنصر الذي سيتم إلحاق هذه القائمة به. |
المرتجعات:
HTMLDivElement
عنصر DOM الجذر للقوائم
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-30 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-30 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `Menu.render()` method dynamically generates the menu's HTML structure within the web page."],["It takes a container element as an argument, specifying where the menu should be placed on the page."],["After the HTML is created and placed in the container, the method returns the root element of the menu for any further interactions."]]],["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"]]