Skip to main content
Version: v4

MessageInputConfigService

The MessageInputConfigService is used to keep a consistent configuration among the different MessageInput components if your UI has more than one input component.

Properties

areMentionsEnabled

areMentionsEnabled: undefined | boolean = true

If true, users can mention other users in messages. You also need to use the AutocompleteTextarea for this feature to work.

Defined in

projects/stream-chat-angular/src/lib/message-input/message-input-config.service.ts:17


inputMode

inputMode: "mobile" | "desktop" = 'desktop'

In desktop mode the Enter key will trigger message sending, in mobile mode the Enter key will insert a new line to the message input.

Defined in

projects/stream-chat-angular/src/lib/message-input/message-input-config.service.ts:30


isFileUploadEnabled

isFileUploadEnabled: undefined | boolean = true

If file upload is enabled, the user can open a file selector from the input. Please note that the user also needs to have the necessary channel capability.

Defined in

projects/stream-chat-angular/src/lib/message-input/message-input-config.service.ts:13


isMultipleFileUploadEnabled

isMultipleFileUploadEnabled: undefined | boolean = true

If false, users can only upload one attachment per message

Defined in

projects/stream-chat-angular/src/lib/message-input/message-input-config.service.ts:21


mentionScope

mentionScope: undefined | "channel" | "application" = 'channel'

The scope for user mentions, either members of the current channel of members of the application

Defined in

projects/stream-chat-angular/src/lib/message-input/message-input-config.service.ts:25

Did you find this page helpful?