ui.root.remove
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפונקציה מסירה את הווידג'ט שצוין מחלונית השורש, אם הוא קיים.
הפונקציה מחזירה את הווידג'ט שהוסר או null אם הווידג'ט לא היה בחלונית הבסיסית.
שימוש | החזרות |
---|
ui.root.remove(widget) | אובייקט |
ארגומנט | סוג | פרטים |
---|
widget | ui.Widget | הווידג'ט שרוצים להסיר. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eRemoves the specified widget from the UI's root panel.\u003c/p\u003e\n"],["\u003cp\u003eReturns the removed widget, or null if it wasn't found.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eui.root.remove(widget)\u003c/code\u003e function where \u003ccode\u003ewidget\u003c/code\u003e is the target ui.Widget.\u003c/p\u003e\n"]]],["The `ui.root.remove(widget)` function removes a specified widget from the root panel. It accepts a single argument, `widget`, of type `ui.Widget`, which represents the widget to be removed. The function returns the removed widget if it was present in the root panel; otherwise, it returns `null`. The return type of this function is Object.\n"],null,["# ui.root.remove\n\n\u003cbr /\u003e\n\nRemoves the given widget from the root panel, if it exists.\n\n\u003cbr /\u003e\n\nReturns the removed widget or null if the widget was not present in the root panel.\n\n| Usage | Returns |\n|--------------------------|---------|\n| `ui.root.remove(widget)` | Object |\n\n| Argument | Type | Details |\n|----------|-----------|-----------------------|\n| `widget` | ui.Widget | The widget to remove. |"]]