SavingToast
Description
A toast notification for save operations
The SavingToast component helps viewing the state of a saving operation (Saving, Saved, Error) with appropriate icons and colors.
API reference
public class SavingToastA toast variant that shows a "saving…" indicator while a long operation is running, swapping to success / error feedback when it completes.
Constructors
Properties
Methods
public SavingToast Saving(string message = null, string title = "Saving...")Configures the component to saving.
public SavingToast Saved(string message = null, string title = "Saved")Configures the component to saved.
public static class SavingToastHelperExtension helpers for awaiting a while showing a .
Methods
public static async Task<T> WithSavingToast<T>(this Task<T> task, string savingMessage = "Saving...", string savedMessage = "Saved", string errorMessage = "Error")Awaits the given task while displaying a : the toast shows a "saving" indicator while the task is in flight and swaps to a "saved" or "error" message on completion.