CustomAPIElement
MMO.elements · 1 symbol · generated 5 Oct 2026
CustomAPIElement
CustomAPIElement.js:11API element WARNING: It is a class mixin. Meaning you extend it with a parameter
- Namespace
MMO.elements- Extends
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. |
Properties3
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>
Methods3
constructor()
CustomAPIElement.js:12setAPI(api)
CustomAPIElement.js:81Attach a requester and load it once the element becomes visible.
| api | MMO.core.APIRequester | |
| throws | MMO.TypeError | on anything else |
reload()
CustomAPIElement.js:97Re-run the query, carrying the loading class for the duration and dispatching load when it settles.
| returns | Promise<Object> | the entities |