Skip to main content
Version: v4

Message Information

CometChatMessageInformation is a standalone component that displays comprehensive information about the message receipts. This will enable users to easily access details such as the message content, recipient and delivery receipt information for a more informed communication experience.

Properties

Title

Heading text for the component

NameTypeDescription
titleStringHeading text for the component

Message

Customise message object and message template of the component

NameTypeDescription
messageCometChat.MessageCometChat message object
templateCometChatMessageTemplateOverride the default message bubble view

Loading state

This refers to the state of the component when it is actively retrieving or fetching data.

NameTypeDescription
loadingIconURLstringAsset URL for the loading indicator icon
loadingStateViewviewReference to the template within the user-defined component to customise the loading indicator

Empty state

This refers to the state of the component when it has no content or data to display

NameTypeDescription
emptyStateTextstringThe textual content displayed in the empty state of the component.
emptyStateViewviewReference to the template within the user-defined component to customise the empty state of the component.

Error state

This refers to the state of the component when an error occurs during the retrieval of the data.

NameTypeDescription
errorStateTextstringThe textual content displayed in the error state of the component.
errorStateViewviewReference to the template within the user-defined component to customise the error state of the component.

Assets URL

Custom asset URL used for graphical representation

NameTypeDescription
readIconstringAsset URL for the read state indicating that a sent message is read by the receiver.
deliveredIconstringAsset URL for the delivered state indicating that a sent message is delivered successfully.
closeIconURLstringAsset URL for the close icon

Date pattern

Customise the date pattern of message receipts.

NameTypeDescription
receiptDatePattern(timestamp:number)=>stringOverride the in-built pattern with your custom representation of the timestamp

Custom view

UI component created and customised by the developer to meet your design or functional requirements.

NameTypeDescription
subtitleView(messageObject: CometChat.BaseMessage, messageReceipt?: CometChat.MessageReceipt) => ViewTypeReference to the template within the user-defined component to customise the secondary text shown in the default user profile.
bubbleView(message: CometChat.BaseMessage)=> ViewTypeReference to the template within the user-defined component to customise the message bubble view
listItemView(messageObject: CometChat.BaseMessage, messageReceipt?: CometChat.MessageReceipt) => ViewTypeReference to the template within the user-defined component to customise the each list item

Function callback

Functions that can be invoked by the user in response to a specific event or condition.

NameTypeDescription
onClose()=>voidOverride the method that is invoked when user clicks on the close icon
onError((error:CometChat.CometChatException)=>void) | nullOverride the method that is invoked when an error is encountered within the component

Style

Styling properties and values of all the involved components

NameTypeDescription
listItemStylelistItemStyleStyling properties and values of the Listitem component
messageInformationStyleMessageInformationStyleStyling properties and values of the Message Information component