CometChatCreateGroup
is a Component enabling users to create various types of groups, including public, private, and password-protected ones. This functionality enables users to curate their group settings according to their preferences and needs.
onCreatePress
action is activated when you click the create Group button. This returns the created groups.
You can override this action using the following code snippet.
onBack
event is typically triggered when the back/close button is clicked and it does not carry a default action.
With the following code snippet, you can effortlessly override this default operation.
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 CreateGroup
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 Create Group component is as follows.
Event | Description |
---|---|
ccGroupCreated | Triggers when the user creates a group successfully |
CreateGroupStyle
to the Create 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 |
tabColor | Sets the color for group type tabs | tabColor?: string; |
selectedTabColor | Sets the color for selected group type tab | selectedTabColor?: string; |
createIconTint | Sets the create icon tint | createIconTint?: sring |
closeIconTint | Sets the close icon tint | closeIconTint?: sring |
titleTextStyle | Sets the font style for the title | titleTextStyle?: FontStyleInterface |
passwordInputTextStyle | Sets the font style for the password input field | passwordInputTextStyle?: FontStyleInterface; |
nameInputTextStyle | Sets the font style for group name field | nameInputTextStyle?: FontStyleInterface; |
passwordPlaceholderTextStyle | Sets the font style for placeholder text in the password input field | passwordPlaceholderTextStyle?: FontStyleInterface; |
namePlaceholderTextStyle | Sets the font style for placeholder text in the name input field | namePlaceholderTextStyle?: FontStyleInterface; |
namePlaceholderTextStyle | Sets the font style for placeholder text in the name input field | namePlaceholderTextStyle?: FontStyleInterface; |
tabTextStyle | Sets the font style for group type tabs | tabTextStyle?: FontStyleInterface; |
selectedTabTextStyle | Sets the font style for selected group type tab | selectedTabTextStyle?: FontStyleInterface; |
Property | Description | Code |
---|---|---|
title | Custom title for the component | title?: string; |
passwordPlaceholderText | Custom text for the password placeholder | passwordPlaceholderText?: string |
namePlaceholderText | Custom text for the name placeholder | namePlaceholderText?: string |
disableCloseButton | Used to disable close button | disableCloseButton?: boolean |
Create Group
component does not offer any advanced functionalities beyond this level of customization.