CometChatJoinGroup
is a Component used to set up a screen that shows the functionality to join a password protected group, featuring the functionality to join a password-protected group, where users can join a single password-protected group at a time.
onJoinClick
action is activated when you click the join Group button. This returns the join groups.
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.
The Join Group
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.
Events emitted by the Join Group component is as follows.
Event | Description |
---|---|
ccGroupMemberJoined | Triggers when the user joined a protected group successfully |
JoinGroupStyle
to the Join Group
Component to customize the styling.
Property | Description | Code |
---|---|---|
border | Used to set border | border?: BorderStyleInterface, |
borderRadius | Used to set border radius | borderRadius?: number; |
background | Used to set background colour | background?: string; |
height | Used to set height | height?: string | number ; |
width | Used to set width | width?: string | number ; |
descriptionTextStyle | Used to the set font style for the description | descriptionTextStyle?: FontStyleInterface |
errorTextStyle | Used to the set font style for the error text | errorTextStyle?: FontStyleInterface |
passwordInputTextStyle | Used to the set font style for the password input | passwordInputTextStyle?: FontStyleInterface |
passwordPlaceholderStyle | Used to the set font style for the password input placeholder | passwordPlaceholderStyle?: FontStyleInterface |
Property | Description | Code |
---|---|---|
title | Custom title for the component | title='Your Custom Title' |
joinButtonText | Custom text for the join group button | joinButtonText='Your Custom Join Group Button Text' |
passwordPlaceholderText | Custom placeholder text for password input field | passwordPlaceholderText='Your Custom Password Input Placeholder Text' |
errorText | Custom error state text | errorText='Your Custom Error Text' |
hasError | Whether the component has an error state | hasError={true} |
group | used to set the group | group={groupObject} |
description | Used to set Custom Description | description='Custom Description' |
Join Group
component does not offer any advanced functionalities beyond this level of customization.