You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/Snackbar/ISnackbar.cs

24 lines
870 B

2 years ago
//Copyright(c) Alessandro Ghidini.All rights reserved.
//Changes and improvements Copyright (c) The MudBlazor Team.
using Microsoft.AspNetCore.Components;
namespace Connected.Components;
public interface ISnackbar : IDisposable
{
IEnumerable<Snackbar> ShownSnackbars { get; }
SnackbarConfiguration Configuration { get; }
event Action OnSnackbarsUpdated;
Snackbar Add(string message, Severity severity = Severity.Normal, Action<SnackbarOptions> configure = null, string key = "");
Snackbar Add(RenderFragment message, Severity severity = Severity.Normal, Action<SnackbarOptions> configure = null, string key = "");
Snackbar Add<T>(Dictionary<string, object> componentParameters = null, Severity severity = Severity.Normal, Action<SnackbarOptions> configure = null, string key = "") where T : IComponent;
void Clear();
void Remove(Snackbar snackbar);
}