Page MenuHomeSealhub

toast.stimulus.ts
No OneTemporary

toast.stimulus.ts

import { Controller } from "stimulus";
export default class Toast extends Controller {
connect() {
console.log("connect");
this.element.addEventListener(
"animationend",
({ animationName }: AnimationEvent) => {
if (animationName == "fade-out") {
this.element.parentElement?.removeChild(this.element);
}
}
);
}
}

File Metadata

Mime Type
text/x-java
Expires
Wed, Aug 13, 17:06 (21 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
868183
Default Alt Text
toast.stimulus.ts (343 B)

Event Timeline