Types and states
The type picks the edge colour and the glyph. A timed toast carries a progress bar counting down its duration; one queued behind the front of its stack ([isFront]="false", the third in each type) keeps the bar full and still. These are placed directly to show every state at once — an app never places a gog-toast itself; the container renders one per show().
Report exported.
Report exported.
Report exported.
Report exported.
Report exported.
Report exported.
Report exported.
Report exported.
Report exported.
Report exported.
Report exported.
Report exported.
<!-- Placed directly only to show every state at once; an app lets the container do it. -->
@for (generation of [generation()]; track generation) {
@for (cell of cells; track cell.toast.id) {
<gog-toast [toast]="cell.toast" [isFront]="cell.isFront" />
}
}
<p>
<gog-button variant="ghost" size="sm" (gogClick)="generation.set(generation() + 1)">
Bring closed toasts back
</gog-button>
</p>