Table of Contents

Class MBToastSettings

Namespace
Material.Blazor
Assembly
Material.Blazor.dll

Settings for an individual toast notification determining all aspects controlling it's markup and behaviour. All parameters are optional with defaults defined in the MBToastServiceConfiguration that you define when creating the toast service.

public class MBToastSettings
Inheritance
MBToastSettings
Inherited Members

Constructors

MBToastSettings()

public MBToastSettings()

Properties

CloseMethod

How the toast message gets closed. See MBNotifierCloseMethod.

public MBNotifierCloseMethod? CloseMethod { get; set; }

Property Value

MBNotifierCloseMethod?

CssClass

CSS class to be applied to the toast message.

public string CssClass { get; set; }

Property Value

string

Heading

The heading - first line.

public string Heading { get; set; }

Property Value

string

IconFoundry

The foundry to use for both leading and trailing icons.

IconFoundry="IconHelper.MIIcon()"

IconFoundry="IconHelper.FAIcon()"

IconFoundry="IconHelper.OIIcon()"

public IMBIconFoundry? IconFoundry { get; set; }

Property Value

IMBIconFoundry

IconName

The icon's name.

public string IconName { get; set; }

Property Value

string

Message

The message - second line.

public string Message { get; set; }

Property Value

string

ShowIcon

Determines whether to show the icon to the left.

public bool? ShowIcon { get; set; }

Property Value

bool?

Timeout

The toast's timeout in milliseconds.

public uint? Timeout { get; set; }

Property Value

uint?