Table of Contents

Class MBToastServiceConfiguration

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

Configuration for IMBToastService.

public class MBToastServiceConfiguration
Inheritance
MBToastServiceConfiguration
Inherited Members

Constructors

MBToastServiceConfiguration()

public MBToastServiceConfiguration()

Fields

DefaultCloseButtonIcon

public const string DefaultCloseButtonIcon = "close"

Field Value

string

DefaultCloseMethod

public const MBNotifierCloseMethod DefaultCloseMethod = TimeoutAndDismissButton

Field Value

MBNotifierCloseMethod

DefaultErrorIconName

public const string DefaultErrorIconName = "error_outline"

Field Value

string

DefaultInfoIconName

public const string DefaultInfoIconName = "notifications"

Field Value

string

DefaultPosition

public const MBToastPosition DefaultPosition = BottomRight

Field Value

MBToastPosition

DefaultShowIcons

public const bool DefaultShowIcons = true

Field Value

bool

DefaultSuccessIconName

public const string DefaultSuccessIconName = "done"

Field Value

string

DefaultTimeout

public const int DefaultTimeout = 3000

Field Value

int

DefaultWarningIconName

public const string DefaultWarningIconName = "warning"

Field Value

string

Properties

CloseButtonIcon

The close icon. Defaults to DefaultCloseButtonIcon ("close").

public string CloseButtonIcon { get; set; }

Property Value

string

CloseMethod

Determines how the toast closes. Defaults to TimeoutAndDismissButton.

public MBNotifierCloseMethod CloseMethod { get; set; }

Property Value

MBNotifierCloseMethod

ErrorDefaultHeading

Default heading for an Error toast.

public string ErrorDefaultHeading { get; set; }

Property Value

string

ErrorIconName

Icon for an Error toast.

public string ErrorIconName { get; set; }

Property Value

string

IconFoundry

Toast icon foundry.

public IMBIconFoundry IconFoundry { get; set; }

Property Value

IMBIconFoundry

InfoDefaultHeading

Default heading for an Info toast.

public string InfoDefaultHeading { get; set; }

Property Value

string

InfoIconName

Icon for an Info toast.

public string InfoIconName { get; set; }

Property Value

string

MaxToastsShowing

The maximum number of toasts that can be simultaneously shown. Further toasts are queued until others have been closed. Zero or negative means there is no limit.

public int MaxToastsShowing { get; set; }

Property Value

int

Position

Sets the toast's position.

public MBToastPosition Position { get; set; }

Property Value

MBToastPosition

ShowIcons

Determines whether default toasts show an icon.

public bool ShowIcons { get; set; }

Property Value

bool

SuccessDefaultHeading

Default heading for an Success toast.

public string SuccessDefaultHeading { get; set; }

Property Value

string

SuccessIconName

Icon for an Success toast.

public string SuccessIconName { get; set; }

Property Value

string

Timeout

Timeout in milliseconds until the toast automatically closes. Defaults to 3000 and ignored if CloseMethod is DismissButton.

public uint Timeout { get; set; }

Property Value

uint

WarningDefaultHeading

Default heading for an waWrning toast.

public string WarningDefaultHeading { get; set; }

Property Value

string

WarningIconName

Icon for an warning toast.

public string WarningIconName { get; set; }

Property Value

string