CometChatContacts
is a component. CometChatContacts
includes various attributes and methods to customize its UI.
Properties | Type | Description |
---|---|---|
usersConfiguration | UsersConfiguration | used as a custom request for user request builder protocol |
onItemPress | (param: { user?:User, group?:Group }) | callback triggered on tapping a user or group item tab |
groupsConfiguration | GroupsConfiguration | used as a custom request for group request builder protocol |
backIcon | Image | used to set the back icon |
contactsStyle | ContactsStyleInterface | used to set the contact styles |
onClose | Function | used to set the close icon function when the tapped on close icon |
selectionMode | SelectionMode | used to set the number of groups that can be selected if activateSelection is not null. SelectionMode can be single, multiple . |
submitIcon | Image | used to set submit button icon |
title | String | used to set title |
userTabTitle | String | used to set users tab title |
groupTabTitle | String | used to set groups tab title |
onSubmitIconClick | (props: { users: Array<User>, groups: Array<Group> }) | triggered when clicked on submit icon |
tabVisibility | ’user’ | ‘groups’ | ‘usersAndGroup’ | parameter to alter visibility of different tabs between users and group |
selectionLimit | number | used to set the selection limit |
hideSubmit | boolean | used to hide submit icons |
Properties | Type | Description |
---|---|---|
width | string | number | used to set width |
height | string | number | used to set height |
background | String | used to set background color |
border | BorderStyle | used to set border |
borderRadius | number | used to set corner radius |
titleTextFont | FontStyle | used to set title font |
titleTextColor | String | used to set a text color |
backIconTint | String | used to set a back icon tint |
tabWidth | string | number | used to set a tab width |
tabHeight | string | number | used to set a tab height |
tabBorder | BorderStyle | used to set a tab border |
tabBorderRadius | Number | used to set tab border radius |
tabBackgroundColor | String | used to set tab background color |
tabTitleTextFont | FontStyle | used to set tab title text font |
tabTitleTextColor | String | used to set tab title text color |
activeTabTitleTextColor | String | used to set active tab title text color |
activeTabBackgroundColor | String | used to set active tab background color |
activeTabBorder | BorderStyle | used to set active tab border |
selectionIconTint | String | used to set selected icon color |