element.once()
Esta página aún no está disponible en tu idioma.
Like on(), for the next event only.
once<K extends keyof ElementEvents>(event: K, handler: (e: ElementEvents[K]) => void): void;Parameters
Section titled “Parameters”eventkeyof ElementEventsObligatorioThe event name.
handler(e: ElementEvents[K]) => voidObligatorioCalled once with the event payload.
Example
Section titled “Example”guide.once("ready", () => performance.mark("tys-ready"));¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.