Table of Contents

Class MBSnackbarServiceConfiguration

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

Configuration for IMBSnackbarService.

public class MBSnackbarServiceConfiguration
Inheritance
MBSnackbarServiceConfiguration
Inherited Members

Constructors

MBSnackbarServiceConfiguration()

public MBSnackbarServiceConfiguration()

Fields

DefaultCloseMethod

public const MBNotifierCloseMethod DefaultCloseMethod = TimeoutAndDismissButton

Field Value

MBNotifierCloseMethod

DefaultDismissIcon

public const bool DefaultDismissIcon = true

Field Value

bool

DefaultLeading

public const bool DefaultLeading = false

Field Value

bool

DefaultStacked

public const bool DefaultStacked = false

Field Value

bool

DefaultTimeout

public const int DefaultTimeout = 5000

Field Value

int

Properties

CloseMethod

Determines how the snackbar closes. Defaults to TimeoutAndDismissButton.

public MBNotifierCloseMethod CloseMethod { get; set; }

Property Value

MBNotifierCloseMethod

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.

public bool? Leading { get; set; }

Property Value

bool?

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.

public bool? Stacked { get; set; }

Property Value

bool?

Timeout

The snackbar's timeout in milliseconds. Minimum value is 4000 (4 seconds), maximum value is 10000 (10s). Defaults to 5000.

public int? Timeout { get; set; }

Property Value

int?