Class Message
Inherited Members
Namespace: Syncfusion.EJ2.Notifications
Assembly: Syncfusion.EJ2.dll
Syntax
public class Message : EJTagHelper
Constructors
Message()
Declaration
public Message()
Properties
Closed
Triggers when the Message component is closed successfully.
Declaration
[HtmlAttributeName("closed")]
public string Closed { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Content
Specifies the content to be displayed in the Message component. It can be a paragraph, a list, or any other HTML element.
Declaration
[HtmlAttributeName("content")]
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type | Description |
---|---|
MvcTemplate<System.Object> |
Created
Triggers when the Message component is created successfully.
Declaration
[HtmlAttributeName("created")]
public string Created { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
CssClass
Specifies the CSS class or multiple classes separated by space that can be appended to the root element of the Message component to customize the message.
Declaration
[HtmlAttributeName("cssClass")]
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Destroyed
Triggers when the Message component is destroyed successfully.
Declaration
[HtmlAttributeName("destroyed")]
public string Destroyed { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
EnablePersistence
Enable or disable persisting component's state between page reloads.
Declaration
[HtmlAttributeName("enablePersistence")]
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
[HtmlAttributeName("enableRtl")]
public bool EnableRtl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
HtmlAttributes
Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.
Declaration
[HtmlAttributeName("htmlAttributes")]
public object HtmlAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Locale
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
[HtmlAttributeName("locale")]
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Severity
Specifies the severity of the message, which is used to define the appearance (icons and colors) of the message. The available severity messages are Normal, Success, Info, Warning, and Error.
Declaration
[HtmlAttributeName("severity")]
public Severity Severity { get; set; }
Property Value
Type | Description |
---|---|
Severity | The default value is Severity.Normal |
ShowCloseIcon
Shows or hides the close icon in the Message component. An end user can click the close icon to hide the message. The closed event is triggered when the message is closed.
Declaration
[HtmlAttributeName("showCloseIcon")]
public bool ShowCloseIcon { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
ShowIcon
Shows or hides the severity icon in the Message component. When set to true, the severity icon is displayed at the left edge of the Message component. This icon will be distinctive based on the severity property.
Declaration
[HtmlAttributeName("showIcon")]
public bool ShowIcon { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
Variant
Specifies the variant from predefined appearance variants to display the content of the Message component. The available variants are Text, Outlined, and Filled.
Declaration
[HtmlAttributeName("variant")]
public Variant Variant { get; set; }
Property Value
Type | Description |
---|---|
Variant | The default value is Variant.Text |
Visible
Shows or hides the visibility of the Message component. When set to false, the Message component will be hidden.
Declaration
[HtmlAttributeName("visible")]
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |