Class MBSnackbarServiceConfiguration
Inheritance
MBSnackbarServiceConfiguration
Assembly: Material.Blazor.dll
Syntax
public class MBSnackbarServiceConfiguration
Fields
|
Improve this Doc
View Source
DefaultCloseMethod
Declaration
public const MBNotifierCloseMethod DefaultCloseMethod = MBNotifierCloseMethod.TimeoutAndDismissButton
Field Value
|
Improve this Doc
View Source
DefaultDismissIcon
Declaration
public const bool DefaultDismissIcon = true
Field Value
|
Improve this Doc
View Source
DefaultLeading
Declaration
public const bool DefaultLeading = false
Field Value
|
Improve this Doc
View Source
DefaultStacked
Declaration
public const bool DefaultStacked = false
Field Value
|
Improve this Doc
View Source
DefaultTimeout
Declaration
public const int DefaultTimeout = 5000
Field Value
Properties
|
Improve this Doc
View Source
CloseMethod
Declaration
public MBNotifierCloseMethod CloseMethod { get; set; }
Property Value
|
Improve this Doc
View Source
Leading
By default, snackbars are centered horizontally within the viewport.
On larger screens, they can optionally be displayed on the leading edge of the screen (the left side in LTR, or the right side in RTL) by setting this property to true.
Default: false.
Declaration
public bool? Leading { get; set; }
Property Value
|
Improve this Doc
View Source
Stacked
Action buttons with long text should be positioned below the label instead of alongside it.
This can be accomplished by setting this property to true.
Default: false.
Declaration
public bool? Stacked { get; set; }
Property Value
|
Improve this Doc
View Source
Timeout
The snackbar's timeout in milliseconds.
Minimum value is 4000 (4 seconds), maximum value is 10000 (10s).
Defaults to 5000.
Declaration
public int? Timeout { get; set; }
Property Value