OnItemClick
is triggered when you click on a ListItem of the Conversations component. The OnItemClick
action doesn’t have a predefined behavior. You can override this action using the following code snippet.
OnSelect
event is triggered upon the completion of a selection in SelectionMode
. It does not have a default behavior. However, you can override its behavior using the following code snippet.
ConversationsRequestBuilder
in the Conversations Component to filter the conversation list. You can modify the builder as per your specific requirements with multiple options available to know more refer to ConversationRequestBuilder.
You can set filters using the following parameters.
User
or Groups
Tag
Tag
Tag
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.
Property | Description | Code |
---|---|---|
Hide Receipts | Disables the display of message read receipts. If set to true , the receipt status of the sent message won’t be displayed. | hideReceipts={false} |
Hide Error | Hides the default and the custom error view passed in the errorView prop. | hideError={true} |
Hide Delete Conversation | Hides the delete conversation option in the default context menu. | hideDeleteConversation={false} |
Hide User Status | Hides the user’s online/offline status indicator. | hideUserStatus={true} |
Hide Group Type | Hides the group type icon. | hideGroupType={false} |
Show Scrollbar | Controls the visibility of the scrollbar in the list. | showScrollbar={true} |
Active Conversation | Specifies the conversation to highlight in the list. | activeConversation={activeConversation} |
Selection Mode | Determines the selection mode for the component. | selectionMode={SelectionMode.multiple} |
Disable Sound For Messages | Used to Disable sound for incoming messages. | disableSoundForMessages={false} |
Custom Sound For Messages | Custom audio sound for incoming messages. | customSoundForMessages="Your custom sound url" |
Loading View | A custom component to display during the loading state. | loadingView={<>Custom Loading View</>} |
Empty View | A custom component to display when there are no conversations available. | emptyView={<>Custom Empty View</>} |
Error View | A custom component to display when an error occurs. | errorView={<>Custom Error View</>} |
Name | Description |
---|---|
time | Date format displayed in the format hh:mm a |
DayDate | Date format displayed in the following format. 1) If timestamp < 24hrs display “Today” 2) If timestamp < 48hrs display “Yesterday” 3) If timestamp < 7days display “EEE” i.e , SUNDAY 4) else display “d MMM, yyyy” |
DayDateTime | Date format displayed in the following format.1) If timestamp < 24hrs display “hh:mm a” 2) If timestamp < 48hrs display “Yesterday” 3) If timestamp < 7days display “EEE” i.e SUNDAY 4) else display “dd MM yyyy” |
Name | Description |
---|---|
id | Unique identifier for each option. |
title | Heading text for each option. |
iconURL | Sets the asset URL of the icon for each option. |
onClick | Method to be invoked when user clicks on each option. |