btoast-js – Control Panel

Layout is inferred automatically from title and icon settings (noIcon/iconClass): title + icon → header row; icon only → side icon; otherwise message-only.

The snippet runs when the toast body is clicked (not the close button). You can use evt (MouseEvent) and ctx ({ id, el }).
Toast Type
Position
0 = sticky


Approve / Deny actions
Handlers run with this bound to the toast context (you can call this.close(), this.dispose()). Snippets receive evt and ctx.
Note: This control page demonstrates automatic layout (inferred from title and icon settings) and options including title, message, position, variant, delay, extended timeout, pause on hover, dismissible, progress bar, and prevent duplicates (with optional dedupe key and behavior).