UserMemberWrapper
component is an intuitive interface that presents a list of users or group members according to the chat context. by default it shows the list of users.
onItemClick
is triggered when you click on a ListItem of UserMemberWrapper component. You can override this action using the following code snippet.
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.
You can set usersRequestBuilder
and groupMemberRequestBuilder
in the UserMemberWrapper Component to filter the list. You can modify the builder as per your specific requirements with multiple options available to know more refer to UsersRequestBuilder and GroupMemberRequestBuilder
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 CometChatUserMemberWrapper
component does not produce any events.
UserMemberWrapper
component. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.
Avatar
component within the UserMemberWrapper
Component, you can use the following code snippet. For more information you can refer Avatar Styles.
UserMemberWrapper
Component, you can use the following code snippet. For further insights on Status Indicator Styles refer
Property | Description | Code |
---|---|---|
userMemberListType | specifies whether the member list should display group members or individual users. | userMemberListType={UserMemberListType.users} |
searchKeyword report | allows users to filter and display only those items in a list that match the provided keyword. | searchKeyword='custom searchkeyword' |
disableLoadingState report | disable the loading state | disableLoadingState={true} |
disableUsersPresence | used to control visibility of status indicator shown if user is online | disableUsersPresence={true} |
userPresencePlacement | determines the position where the user presence indicator is displayed relative to the user’s avatar or name, with right or bottom indicating it’s displayed to the right or bottom of the user’s list. | userPresencePlacement={UserPresencePlacement.right} |
hideSeparator | When set to true, hides the separator between the individual elements in the list. | hideSeparator={true} |
loadingIconUrl | used to set the custom loading icon | loadingIconUrl='custom loading url' |