MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

CustomAPIElement

MMO.elements · 1 symbole · générée le 27 Oct 2026

mixin

CustomAPIElement

CustomAPIElement.js:11

API element WARNING: It is a class mixin. Meaning you extend it with a parameter

class MMO.elements.CustomAPIElement extends MMO.elements.CustomShadowElement(ClassElement)
Espace de noms
MMO.elements
Étend
CustomShadowElement(ClassElement)

Index

data accessorThe entities of the last response, indexed by uid.
url accessorPoint 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

url

accessorCustomAPIElement.js:36

Point the element at some data, which starts loading as soon as it is visible.

get url() set url(value)
Type
?URL

Méthodes3

setAPI(api)

CustomAPIElement.js:81

Attach a requester and load it once the element becomes visible.

setAPI(api)A requester pointing at the same url is ignored; a different one aborts the request still in flight.
apiMMO.core.APIRequester
lèveMMO.TypeErroron anything else

reload()

CustomAPIElement.js:99

Re-run the query, carrying the loading class for the duration and dispatching load when it settles.

reload()
retournePromise<Object>the entities