onClose
of the ThreadedMesssage Component.
Component
. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.
The ThreadedMessagePreview Component does not emit any events of its own.
Property | Description | Code |
---|---|---|
Hide Date | Hides the visibility of the date header. | hideDate={true} |
Hide Reply Count | Hides the visibility of the reply count. | hideReplyCount={true} |
Show Scrollbar | Controls the visibility of the scrollbar in the preview area. | showScrollbar={true} |
Parent Message | Represents the parent message for displaying threaded conversations. | parentMessage={message} |
Template | Template for customizing the appearance of the message. | template={"PASS_CUSTOM_MESSAGE_TEMPLATE"} |
Message Bubble View | A custom view for rendering the message bubble. | messageBubbleView={(message: CometChat.BaseMessage) => <>Custom Bubble View</>} |
On Error | Callback function triggered when an error occurs. | onError={(error: CometChat.CometChatException) => console.log(error)} |