Class MBToastSettings
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.
Inherited Members
Namespace: Material.Blazor
Assembly: Material.Blazor.dll
Syntax
public class MBToastSettings
Properties
| Improve this Doc View SourceCloseMethod
How the toast message gets closed. See MBNotifierCloseMethod.
Declaration
public MBNotifierCloseMethod? CloseMethod { get; set; }
Property Value
Type | Description |
---|---|
Nullable<MBNotifierCloseMethod> |
CssClass
CSS class to be applied to the toast message.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
String |
Heading
The heading - first line.
Declaration
public string Heading { get; set; }
Property Value
Type | Description |
---|---|
String |
IconFoundry
The foundry to use for both leading and trailing icons.
IconFoundry="IconHelper.MIIcon()"
IconFoundry="IconHelper.FAIcon()"
IconFoundry="IconHelper.OIIcon()"
Declaration
public IMBIconFoundry IconFoundry { get; set; }
Property Value
Type | Description |
---|---|
IMBIconFoundry |
IconName
The icon's name.
Declaration
public string IconName { get; set; }
Property Value
Type | Description |
---|---|
String |
Message
The message - second line.
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
String |
ShowIcon
Determines whether to show the icon to the left.
Declaration
public bool? ShowIcon { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
Timeout
The toast's timeout in milliseconds.
Declaration
public uint? Timeout { get; set; }
Property Value
Type | Description |
---|---|
Nullable<UInt32> |