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 ThreadHeader Component does not emit any events of its own.
Property | Description | Code |
---|---|---|
Parent Message | Represents the parent message for displaying threaded conversations. | parentMessage={message} |
Message Bubble View | A custom view for rendering the message bubble. | messageBubbleView={(message: CometChat.BaseMessage) => <>Custom Bubble View</>} |
Template | Template for customizing the appearance of the message. | template={"PASS_CUSTOM_MESSAGE_TEMPLATE"} |
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 component. | showScrollbar={true} |
On Error | Callback function triggered when an error occurs. | onError={(error: CometChat.CometChatException) => console.log(error)} |
separatorDateTimeFormat
property allows you to customize the Date Separator timestamp displayed in the Threaded Message Preview.
Default Date Time Format:
CalendarObject
.
messageSentAtDateTimeFormat
property allows you to customize the Message SentAt timestamp displayed in the Threaded Message Preview.
Default Date Time Format:
CalendarObject
.