ui.data.ActiveList.get
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Renvoie l'élément à l'index spécifié.
Utilisation | Renvoie |
---|
ActiveList.get(index) | Objet |
Argument | Type | Détails |
---|
ceci : ui.data.activelist | ui.data.ActiveList | Instance ui.data.ActiveList. |
index | Nombre | Index de l'élément à renvoyer. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eThe \u003ccode\u003eget\u003c/code\u003e method retrieves the element located at the given index within an ActiveList.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts the \u003ccode\u003eindex\u003c/code\u003e as a numerical argument, specifying the element's position.\u003c/p\u003e\n"],["\u003cp\u003eThe method returns the element found at the specified index, which can be of any object type.\u003c/p\u003e\n"],["\u003cp\u003eThis functionality is accessed through an instance of the \u003ccode\u003eui.data.ActiveList\u003c/code\u003e object using the \u003ccode\u003eget\u003c/code\u003e method.\u003c/p\u003e\n"]]],["The `get(index)` method of `ui.data.ActiveList` returns an element (Object) located at a specific index (Number). The method takes the `ui.data.ActiveList` instance itself as context (`this`) and the desired `index` as its argument. This function retrieves and returns the object stored at that particular index within the ActiveList.\n"],null,["# ui.data.ActiveList.get\n\n\u003cbr /\u003e\n\nReturns the element at the specified index.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------|---------|\n| ActiveList.get`(index)` | Object |\n\n| Argument | Type | Details |\n|----------------------------|--------------------|-------------------------------------|\n| this: `ui.data.activelist` | ui.data.ActiveList | The ui.data.ActiveList instance. |\n| `index` | Number | The index of the element to return. |"]]