Playground

Notification Manager

Parameters

These are not parameters directly tied to RfNotificationManager but instead give you a way to see the configuration of a individual notification.

However each notification type: info, success, warning, error all do support their own default settings which can be overriden as parameters.

Text to display above the messsage on the notification.

Text to display on the notification.

Used to set the severity of a notification. This will set the default style / behaviour of a notfication.

The location to display the notification relative to the notification manager's parent.

//INotificationManager>cs
/// <summary>
/// Shows a information notification 
/// </summary>
/// <param name="content">RenderFragment to display on the notification</param>
/// <param name="options">Options to configure the notification instance</param>
void AddInfo(RenderFragment content, Action<NotificationOptions> options = null);

/// <summary>
/// Shows a success notification 
/// </summary>
/// <param name="content">RenderFragment to display on the notification</param>
/// <param name="options">Options to configure the notification instance</param>
void AddSuccess(RenderFragment content, Action<NotificationOptions> options = null);

/// <summary>
/// Shows a warning notification 
/// </summary>
/// <param name="content">RenderFragment to display on the notification</param>
/// <param name="options">Options to configure the notification instance</param>
void AddWarning(RenderFragment content, Action<NotificationOptions> options = null);

/// <summary>
/// Shows a error notification 
/// </summary>
/// <param name="content">RenderFragment to display on the notification</param>
/// <param name="options">Options to configure the notification instance</param>
void AddError(RenderFragment content, Action<NotificationOptions> options = null);

/// <summary>
/// Shows a notification using the supplied options
/// </summary>
/// <param name="content">RenderFragment to display inside the notification</param>
/// <param name="options">Options to configure the notification instance
/// If null the system will use the default options></param>
void AddNotification(RenderFragment content, NotificationOptions options);

//INotificationManagerBackend>cs
/// <summary>
/// Shows a information notification 
/// </summary>
/// <param name="message">Text to display on the notification</param>
/// <param name="options">Options to configure the notification instance</param>
void AddInfo(string message, Action<NotificationOptions> options = null);

/// <summary>
/// Shows a success notification 
/// </summary>
/// <param name="message">Text to display on the notification</param>
/// <param name="options">Options to configure the notification instance</param>
void AddSuccess(string message, Action<NotificationOptions> options = null);

/// <summary>
/// Shows a warning notification 
/// </summary>
/// <param name="message">Text to display on the notification</param>
/// <param name="options">Options to configure the notification instance</param>
void AddWarning(string message, Action<NotificationOptions> options = null);

/// <summary>
/// Shows a error notification 
/// </summary>
/// <param name="message">Text to display on the notification</param>
/// <param name="options">Options to configure the notification instance</param>
void AddError(string message, Action<NotificationOptions> options = null);

/// <summary>
/// Shows a information notification 
/// </summary>
/// <param name="message">Text to display on the notification</param>
/// <param name="title">Text to display above the messsage on the notification</param>
/// <param name="options">Options to configure the notification instance</param>
void AddInfo(string message, string title, Action<NotificationOptions> options = null);

/// <summary>
/// Shows a success notification 
/// </summary>
/// <param name="message">Text to display on the notification</param>
/// <param name="title">Text to display above the messsage on the notification</param>
/// <param name="options">Options to configure the notification instance</param>
void AddSuccess(string message, string title, Action<NotificationOptions> options = null);

/// <summary>
/// Shows a warning notification 
/// </summary>
/// <param name="message">Text to display on the notification</param>
/// <param name="title">Text to display above the messsage on the notification</param>
/// <param name="options">Options to configure the notification instance</param>
void AddWarning(string message, string title, Action<NotificationOptions> options = null);

/// <summary>
/// Shows a error notification 
/// </summary>
/// <param name="message">Text to display on the notification</param>
/// <param name="title">Text to display above the messsage on the notification</param>
/// <param name="options">Options to configure the notification instance</param>
void AddError(string message, string title, Action<NotificationOptions> options = null);
An unhandled error has occurred. Reload 🗙