Class NotificationMessage
Class NotificationMessage.
Inheritance
Namespace: Radzen
Assembly: Radzen.Blazor.dll
Syntax
public class NotificationMessage : IEquatable<NotificationMessage>
Properties
Click
Gets or sets the click event.
Declaration
public Action<NotificationMessage> Click { get; set; }
Property Value
Type | Description |
---|---|
Action<NotificationMessage> | This event handler is called when the notification is clicked on. |
Close
Get or set the event for when the notification is closed
Declaration
public Action<NotificationMessage> Close { get; set; }
Property Value
Type | Description |
---|---|
Action<NotificationMessage> |
CloseOnClick
Gets or sets click on close action.
Declaration
public bool CloseOnClick { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | If true, then the notification will be closed when clicked on. |
Detail
Gets or sets the detail.
Declaration
public string Detail { get; set; }
Property Value
Type | Description |
---|---|
System.String | The detail. |
DetailContent
Gets or sets the detail content.
Declaration
public RenderFragment<NotificationService> DetailContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment<NotificationService> | The detail content. |
Duration
Gets or sets the duration.
Declaration
public double? Duration { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> | The duration. |
Payload
Gets or sets notification payload.
Declaration
public object Payload { get; set; }
Property Value
Type | Description |
---|---|
System.Object | Used to store a custom payload that can be retreived later in the click event handler. |
Severity
Gets or sets the severity.
Declaration
public NotificationSeverity Severity { get; set; }
Property Value
Type | Description |
---|---|
NotificationSeverity | The severity. |
Style
Gets or sets the style.
Declaration
public string Style { get; set; }
Property Value
Type | Description |
---|---|
System.String | The style. |
Summary
Gets or sets the summary.
Declaration
public string Summary { get; set; }
Property Value
Type | Description |
---|---|
System.String | The summary. |
SummaryContent
Gets or sets the summary content.
Declaration
public RenderFragment<NotificationService> SummaryContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment<NotificationService> | The summary content. |
Methods
Equals(NotificationMessage)
Check if NotificationMessage instance is equal to current instance.
Declaration
public bool Equals(NotificationMessage other)
Parameters
Type | Name | Description |
---|---|---|
NotificationMessage | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Check if object instance is equal to current instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Return a hash code for the current object
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Operators
Equality(NotificationMessage, NotificationMessage)
Overloading == operator for NotificationMessage.
Declaration
public static bool operator ==(NotificationMessage message, NotificationMessage otherMessage)
Parameters
Type | Name | Description |
---|---|---|
NotificationMessage | message | |
NotificationMessage | otherMessage |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NotificationMessage, NotificationMessage)
Overloading != operator for NotificationMessage.
Declaration
public static bool operator !=(NotificationMessage message, NotificationMessage otherMessage)
Parameters
Type | Name | Description |
---|---|---|
NotificationMessage | message | |
NotificationMessage | otherMessage |
Returns
Type | Description |
---|---|
System.Boolean |