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
Fri, Nov 28, 15:11 (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1063556
Default Alt Text
toast.stimulus.ts (343 B)

Event Timeline