ui.Map.Linker.set
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הגדרת אלמנט באינדקס שצוין. אם האינדקס גדול מזה של הרכיב האחרון ברשימה, הרכיב יתווסף לסוף הרשימה.
מחזירה את ui.data.ActiveList.
שימוש | החזרות |
---|
Linker.set(index, el) | ui.data.ActiveList |
ארגומנט | סוג | פרטים |
---|
זה: ui.data.activelist | ui.data.ActiveList | המופע ui.data.ActiveList. |
index | מספר | האינדקס להחלפה. |
el | אובייקט | הרכיב להגדרה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eThe \u003ccode\u003eset\u003c/code\u003e method allows you to modify an element at a specific index within a ui.data.ActiveList.\u003c/p\u003e\n"],["\u003cp\u003eIf the provided index goes beyond the existing elements, the new element is appended to the end of the list.\u003c/p\u003e\n"],["\u003cp\u003eIt always returns the original ui.data.ActiveList instance, enabling method chaining.\u003c/p\u003e\n"]]],["The `set` function modifies a `ui.data.ActiveList` instance. It places an element (`el`) at a given `index`. If the `index` is beyond the current list's bounds, the element is appended to the end. The function returns the modified `ui.data.ActiveList` instance itself. It requires an index (Number) and an element (Object) as arguments, where the index will be overwritten by the provided element.\n"],null,["# ui.Map.Linker.set\n\n\u003cbr /\u003e\n\nSets an element at the specified index. If the index exceeds that of the list's last element, the element will be added to the end of the list.\n\n\u003cbr /\u003e\n\nReturns this ui.data.ActiveList.\n\n| Usage | Returns |\n|-------------------------|--------------------|\n| Linker.set`(index, el)` | ui.data.ActiveList |\n\n| Argument | Type | Details |\n|----------------------------|--------------------|----------------------------------|\n| this: `ui.data.activelist` | ui.data.ActiveList | The ui.data.ActiveList instance. |\n| `index` | Number | The index to overwrite. |\n| `el` | Object | The element to set. |"]]