Class ChatUIUser
Inheritance
Namespace: Syncfusion.EJ2.InteractiveChat
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChatUIUser : EJTagHelper
Constructors
ChatUIUser()
Declaration
public ChatUIUser()
Properties
AvatarBgColor
Defines the background color for the user's avatar in the Chat UI component.
This property accepts a color in hexadecimal format (e.g., #FFFFFF
for white), allowing for custom styling of the avatar's background.
Declaration
public string AvatarBgColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
AvatarUrl
Specifies the URL of the user's avatar image. If the URL is not provided, the user's first and last name initial letters will be used as the avatar.
Declaration
public string AvatarUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
CssClass
Represents additional CSS classes to style the user's messages in the Chat UI component. This property allows for custom styling by accepting one or more class names as a string.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Id
Specifies the unique identifier for each user in the Chat UI component. Represents a string that uniquely identifies a user for tracking and managing individual users within the chat.
Declaration
public override string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "'" |
Overrides
User
Represents the display name of the user in the Chat UI component.
Declaration
public string User { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "Default" |