MessageComposerConfiguration
This refers to the properties of the CometChatMessageComposer
component that are available for customisation via the parent component when the component exists in a deep nested hierarchy.
Configurable Properties
Name | Description |
---|---|
auxiliaryButtonsAlignment | This refers to the visual arrangement or positioning of the auxiliary buttons within the composer list. Defaults to right alignment. |
attachmentOptions | This refer to the functionalities that allow users to attach various types of files, media, or content to their messages such as polls, collaborative document etc |
attachmentIconURL | Asset URL for the attach icon. |
emojiIconURL | Asset URL for the emoji icon |
LiveReactionIconURL | Asset URL for the live reaction. |
voiceRecordingCloseIconURL | Asset URL for the close icon in video recording pane |
sendButtonIconURL | Asset URL for the send button |
sendButtonView | User-defined component to customise the send button. |
hideLayoutMode | When set to true, hides the button which toggles the action sheet layout mode between "grid" & "list" |
secondaryButtonView | User-defined component to customise the secondary button. By default, it shows the attach button. |
auxiliaryButtonView | User-defined component to customise the auxiliary button. By default, it shows the stickers button. |
headerView | User-defined component to customise the top of the message header component. You can customise it to display additional information or options related to the composition of messages such a giphy keyboard. |
disableTyping | When set to true, typing events are disabled and the typing indicators are not displayed. |
hideLiveReaction | When set to true, the button to send out the live reaction is not displayed. |
hideVoiceRecording | When set to true, video recording button is not visible |
disableSoundForMessages | When set to true, the component will not produce sound for all outgoing messages. |
customSoundForMessage | mp3 file asset of your choice. |
onSendButtonClick | Override the method that is invoked when the user clicks on the send button |
onError | Override the method that is invoked when an error is encountered within the details component |
backdropStyle | Styling properties and values of the Backdrop component |
actionSheetStyle | Styling properties and values of the Action Sheet composer |
mediaRecorderStyle | Styling properties of the Media Recorder component |
messageComposerStyle | Styling properties and values of the CometChatMessageHeader component |
userMemberWrapperConfiguration | Properties of the UserMemberWrapper component that are available for customisation via the messages component. |
textFormattersList | Accepts custom text formatters for message composer |
disableMentions | Disables mentions in composer. Default value is set to false |
mentionsWarningText | Text to be displayed when max limit reaches for valid mentions |
mentionsWarningStyle | Styling properties and values for mentionsWarningStyle |