Component | Description |
---|---|
MessageList | CometChatMessageList is a component that displays a list of Messages |
MessageComposer | CometChatMessageComposer is a component that helps in writing and editing of messages and also sending attachments |
onClose
callback.
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 ThreadedMessages Component does not emit any events of its own.
threadedMessagesStyle
property.
ThreadedMessagesStyle
:
Methods | Description | Type | |
---|---|---|---|
border | Used to set border | border?: BorderStyleInterface, | |
borderRadius | Used to set border radius | borderRadius?: string; | |
background | Used to set background colour | `background?: number | string;` |
height | Used to set height | `height?: number | string;` |
width | Used to set width | `width?: number | string;` |
titleStyle | used to customise the font of the title in the app bar | titleStyle?: FontStyleInterface; | |
closeIconTint | used to set the color of the close icon in the app bar | closeIconTint?: string; |
Property | Description | Code |
---|---|---|
parentMessage | Used to to set the message for which the replies need to be fetched | parentMessage={parentMessage} |
title | Used to set title in the app bar | title={getTitle()} |
closeIcon | Used to set the icon to exit the widget | closeIcon={{uri: <image url>}} OR import customCloseIcon from "./customCloseIcon.svg"; ``closeIcon={customCloseIcon} |
hideMessageComposer | This will hide/show the message composer | hideMessageComposer={true} |
bubbleView
, You can set parent message bubble view inside ThreadedMessage Component.
Example
bubbleView
and apply custom styles on it.
MessageActionView
method, you can assign custom actions to the parent message bubble view inside the ThreadedMessage Component.
Example
Load More Replies
as message action view in ThreadedMessages Component.
MessageComposerView
method, you can override the default CometChatMessageComposer.
Example
MessageListView
method, you can override the default CometChatMessageList.
Example
MessageListConfiguration
object.
MessageListConfiguration
provides access to all the Action, Filters, Styles, Functionality, and Advanced properties of the MessageList component.
MessageListConfiguration
.
MessageComposerConfiguration
object.
MessageComposerConfiguration
provides access to all the Action, Filters, Styles, Functionality, and Advanced properties of the MessageComposer component.
MessageComposerConfiguration
.