CustomAPIElement
MMO.elements · 1 symbole · générée le 27 Oct 2026
CustomAPIElement
CustomAPIElement.js:11API element WARNING: It is a class mixin. Meaning you extend it with a parameter
- Espace de noms
MMO.elements- Étend
CustomShadowElement(ClassElement)
Index
| data accessor | The entities of the last response, indexed by uid. | |
| url accessor | Point the element at some data, which starts loading as soon as it is visible. | |
| schema accessor | ||
| constructor() | ||
| setAPI(api) | Attach a requester and load it once the element becomes visible. | |
| reload() | Re-run the query, carrying the loading class for the duration and dispatching load when it settles. |
Propriétés3
data
accessorCustomAPIElement.js:22The entities of the last response, indexed by uid.
- Type
- ?MMO.core.Map
url
accessorCustomAPIElement.js:36Point the element at some data, which starts loading as soon as it is visible.
- Type
?URL
schema
accessorCustomAPIElement.js:62- Type
Promise<?MMO.schemas.Schema>
Méthodes3
constructor()
CustomAPIElement.js:12setAPI(api)
CustomAPIElement.js:81Attach a requester and load it once the element becomes visible.
| api | MMO.core.APIRequester | |
| lève | MMO.TypeError | on anything else |
reload()
CustomAPIElement.js:99Re-run the query, carrying the loading class for the duration and dispatching load when it settles.
| retourne | Promise<Object> | the entities |