CometChatCallParticipants
is a Component that shows a separate view that displays comprehensive information about Call. This will enable users to easily access details such as the call participants, call details for a more informed communication experience.
CallParticipants
is comprised of the following components:
Components | Description |
---|---|
CometChatList | a reusable container component having title, search box, customisable background and a List View |
CometChatListItem | a component that renders data obtained from a Group object on a Tile having a title, subtitle, leading and trailing view |
cometchat-date | This Component used to show the date and time. You can also customize the appearance of this widget by modifying its logic. |
cometchat-button | This component represents a button with optional icon and text. |
onItemPress
is triggered when you click on a ListItem of the of the CallParticipants
component. It does not have a default behavior. However, you can override its behavior using the following code snippet.
onBack
function is built to respond when you press the back button in the AppBar. The back button is only displayed when the prop showBackButton
is set to true.
Component
. You can filter the list based on your specific criteria, allowing for a more customized. Filters can be applied using RequestBuilders
of Chat SDK.
The CallParticipants
component does not have any exposed filters.
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 CallParticipants
does not produce any events.
CallParticipants
component. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.
CallLogParticipantsStyle
object to the CallParticipants
component.
CallLogParticipantsStyle
.
CallLogParticipantsStyle
:
Property | Description | Code |
---|---|---|
border | Used to set border | border?: BorderStyleInterface, |
borderRadius | Used to set border radius | borderRadius?: number; |
backgroundColor | Used to set background colour | background?: string; |
height | Used to set height | height?: number | string; |
width | Used to set width | width?: number | string; |
titleFont | Used to set title font | titleFont?: FontStyleInterface, |
titleColor | Used to set title color | titleColor?: string; |
dateTextFont | Used to set date text font | dateTextFont?: FontStyleInterface; |
dateTextColor | Used to set date text color | dateTextColor?: string; |
emptyTextColor | Used to set empty state text color | emptyTextColor?: string; |
emptyTextFont | Used to set empty state text font | emptyTextFont?: FontStyleInterface; |
backIconTint | Used to set back icon tint | backIconTint?: string; |
durationTextFont | Used to set call duration text font | durationTextFont?: FontStyleInterface; |
durationTextColor | Used to set call duration text color | durationTextColor?: string; |
ListItemStyle
component within the CallParticipants
Component, you can use the following code snippet. For more information, you can refer ListItem Styles.
Avatar
component within the CallParticipants
Component, you can use the following code snippet. For more information you can refer Avatar Styles.
CallParticipants
component.
Property | Description | Code |
---|---|---|
title | Used to set custom title | title?: string |
emptyStateText | Used to set custom empty state text | emptyStateText='Your Custom Empty State Text' |
datePattern | Used to set custom date pattern | datePattern?: DatePattern |
call | Call data object | call: CallLog; |
showBackButton | Used to control the visibility of the back button | showBackButton?: boolean |
BackButton | Used to set custom back icon | BackButton?: JSX.Element; |
data | Used to set list of participants | data?: Participant[; |
CallParticipants
Component.
EmptyStateView
using EmptyStateView
to match the empty view of your app.