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.
|
|
|
|
//Copyright(c) Alessandro Ghidini.All rights reserved.
|
|
|
|
|
//Changes and improvements Copyright (c) The MudBlazor Team.
|
|
|
|
|
|
|
|
|
|
namespace Connected.Components;
|
|
|
|
|
|
|
|
|
|
public abstract class CommonSnackbarOptions
|
|
|
|
|
{
|
|
|
|
|
public int MaximumOpacity { get; set; } = 95;
|
|
|
|
|
|
|
|
|
|
public int ShowTransitionDuration { get; set; } = 1000;
|
|
|
|
|
|
|
|
|
|
public int VisibleStateDuration { get; set; } = 5000;
|
|
|
|
|
|
|
|
|
|
public int HideTransitionDuration { get; set; } = 2000;
|
|
|
|
|
|
|
|
|
|
public bool ShowCloseIcon { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
public bool RequireInteraction { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
public bool BackgroundBlurred { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
public Variant SnackbarVariant { get; set; } = Variant.Filled;
|
|
|
|
|
|
|
|
|
|
protected CommonSnackbarOptions() { }
|
|
|
|
|
|
|
|
|
|
protected CommonSnackbarOptions(CommonSnackbarOptions options)
|
|
|
|
|
{
|
|
|
|
|
MaximumOpacity = options.MaximumOpacity;
|
|
|
|
|
ShowTransitionDuration = options.ShowTransitionDuration;
|
|
|
|
|
VisibleStateDuration = options.VisibleStateDuration;
|
|
|
|
|
HideTransitionDuration = options.HideTransitionDuration;
|
|
|
|
|
ShowCloseIcon = options.ShowCloseIcon;
|
|
|
|
|
RequireInteraction = options.RequireInteraction;
|
|
|
|
|
BackgroundBlurred = options.BackgroundBlurred;
|
|
|
|
|
SnackbarVariant = options.SnackbarVariant;
|
|
|
|
|
}
|
|
|
|
|
}
|