CometChatMentionsTextFormatter
. This class allows you to transform user mentions into clickable elements, enriching the communication experience and making it easy for users to notice and interact with each other within the chat.
formattedMessage
now contains HTML with styled mentions that can be directly inserted into your message component.
CometChatMentionsTextFormatter
component.
Attributes | Type | Description |
---|---|---|
mentionTextFont | string | Sets font for mentions |
mentionTextColor | string | Sets color for mentions |
mentionTextBackground | string | Sets background for mentions |
loggedInUserTextFont | string | Sets font for loggedIn user mentions |
loggedInUserTextColor | string | Sets color for loggedIn user mentions |
loggedInUserTextBackground | string | Sets background for loggedIn user mentions |