API Reference / @gtkx/components / ToastController
Type Alias: ToastController
ToastController =
object
Defined in: types.d.ts:226
Imperative controls for individual toasts, returned by useToast.
Properties
dismiss
dismiss: (
toast) =>void
Defined in: types.d.ts:230
Dismisses a single toast, typically one returned by ToastController.show.
Parameters
toast
Adw.Toast
Returns
void
show
show: (
options?) =>Adw.Toast
Defined in: types.d.ts:228
Builds a toast, shows it through the overlay, and returns it.
Parameters
options?
Returns
Adw.Toast