menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Message - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Message

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    Message
    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
    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
    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
    Syncfusion.EJ2.MvcTemplate<System.Object>

    Created

    Triggers when the Message component is created successfully.

    Declaration
    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
    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
    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
    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
    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
    public object HtmlAttributes { get; set; }
    Property Value
    Type
    System.Object

    Locale

    Overrides the global culture and localization value for this component. Default global culture is 'en-US'.

    Declaration
    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
    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
    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
    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
    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
    public bool Visible { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved