Components | Description |
---|---|
MessageHeader | CometChatMessageHeader displays the User or Group information using CometChat SDK’s User or Group object. It also shows the typing indicator when the user starts typing in MessageComposer . |
MessageList | CometChatMessageList is one of the core UI components. It displays a list of messages and handles real-time operations. |
MessageComposer | CometChatMessageComposer is an independent and critical component that allows users to compose and send various types of messages includes text, image, video and custom messages. |
Details | CometChatDetails is a component that displays all the available options available for Users & Groups |
ThreadedMessages | CometChatThreadedMessages is a component that displays all replies made to a particular message in a conversation. |
The Messages Component overrides the onThreadRepliesClick action to navigate to the ThreadedMessages component. If you override onThreadRepliesClick
, it will also override the default behavior of the Messages Component.
MessageListConfiguration
.
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 Messages
component does not produce any events directly.
Property | Description | Code |
---|---|---|
background | Sets all background style properties at once, such as color, image, origin and size, or repeat method. | background:"sting", |
border | Sets the border of the component | border:"string" |
borderRadius | Sets the border radius of the component | borderRadius:"string" |
height | Sets the height of the component | height:"string" |
width | Sets the width of the component | width:"string" |
MessageListStyle
and MessageComposerStyle
and then applying them to the Messages Component using MessageListConfiguration
and MessageComposerConfiguration
.
Property | Description | Code |
---|---|---|
User | Used to pass user object of which header specific details will be shown | [user]="userObject" |
Group | Used to pass group object of which header specific details will be shown | [group]="groupObject" |
Hide MessageComposer | Used to toggle visibility for CometChatMessageComposer, default false | hideMessageComposer=true |
Hide MessageHeader | Used to toggle visibility for CometChatMessageHeader, default false | hideMessageHeader=true |
Disable Typing | Used to toggle functionality for showing typing indicator and also enable/disable sending message delivery/read receipts | disableTyping=true |
Disable SoundForMessages | Used to toggle sound for messages | disableSoundForMessages=true |
CustomSoundForIncomingMessages | Used to set custom sound asset’s path for incoming messages | customSoundForIncomingMessages="your custom sound for incoming call" |
CustomSoundForOutgoingMessages | Used to set custom sound asset’s path for outgoing messages | customSoundForOutgoingMessages="your custom sound for outgoing call" |
Hide Details | Used to toggle visibility for details icon in CometChatMessageHeader | hideDetails=true |
messageHeaderView
property. But keep in mind, by using this you will override the default message header functionality.
Example
Default
messageListView
property. But keep in mind, by using this you will override the default message ListView functionality.
Example
Default
messageComposerView
property. But keep in mind, by using this you will override the default message composer functionality.
Example
Default
auxiliaryMenu
property.
Example
Default
MessageHeaderConfiguration
object.
The MessageHeaderConfiguration
provides access to all the Action, Filters, Styles, Functionality, and Advanced properties of the MessageHeader component.
Please note that the Properties marked with the 🛑 symbol are not accessible within the Configuration Object.Example
MessageHeaderConfiguration
.
MessageListConfiguration
object.
The MessageListConfiguration
provides access to all the Action, Filters, Styles, Functionality, and Advanced properties of the MessageList component.
Please note that the Properties marked with the 🛑 symbol are not accessible within the Configuration Object.Example
MessageListConfiguration
.
MessageComposerConfiguration
object.
The MessageComposerConfiguration
provides access to all the Action, Filters, Styles, Functionality, and Advanced properties of the MessageComposer component.
Please note that the Properties marked with the 🛑 symbol are not accessible within the Configuration Object.Example
MessageComposerConfiguration
.
ThreadedMessagesConfiguration
object.
The ThreadedMessagesConfiguration
provides access to all the Action, Filters, Styles, Functionality, and Advanced properties of the ThreadedMessages component.
Please note that the Properties marked with the 🛑 symbol are not accessible within the Configuration Object.Example
MessageListConfiguration
. We then apply these changes to the ThreadedMessages component using ThreadedMessagesConfiguration
.