Skip to main content

Module ext

Module ext 

Source
Expand description

Extension methods on [EventContext] for showing and dismissing toasts. Mirrors the EventContextFileDialogExt pattern from teksilo-platform.

Apps use teksilo_widgets::toast::EventContextToastExt; (or use teksilo::prelude::*; once the umbrella re-exports it) and then call ctx.show_toast(toast) / ctx.dismiss_toast(handle) from any handler.

Traits§

EventContextToastExt
Convenience methods on [EventContext] for the toast system. The registry is looked up via [EventContext::app_state] — the install_toast extension trait registers ToastRegistry there at app boot.