Search results

User API in Angular Chat Ui API component

Represents a user model for a messages in the chatUI component.

Properties

avatarBgColor

string

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.

Defaults to

avatarUrl

string

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.

Defaults to

cssClass

string

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.

Defaults to

id

string

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.

Defaults to '''

user

string

Represents the display name of the user in the Chat UI component.

Defaults to ‘Default’