IgcChatComponentEventMap

Defines the custom events dispatched by the chat component.

Dispatched when the user adds attachments with drag and drop or with the default file input. Cancelable: a canceled event does not add them.

igcAttachmentAdded: CustomEvent<IgcChatMessageAttachment[]>

Defined in src/components/chat/chat.ts:90

Dispatched when the user clicks the header of a message attachment.

igcAttachmentClick: CustomEvent<IgcChatMessageAttachment>

Defined in src/components/chat/chat.ts:77

Dispatched when the user drags files into the input area.

igcAttachmentDrag: CustomEvent<void>

Defined in src/components/chat/chat.ts:103

Dispatched when the user drops files on the input area.

igcAttachmentDrop: CustomEvent<void>

Defined in src/components/chat/chat.ts:109

Dispatched when the user removes an attachment from the input. Cancelable: a canceled event keeps the attachment.

igcAttachmentRemoved: CustomEvent<IgcChatMessageAttachment>

Defined in src/components/chat/chat.ts:97

Dispatched when the chat input field loses focus.

igcInputBlur: CustomEvent<void>

Defined in src/components/chat/chat.ts:124

Dispatched when the content of the chat input changes.

igcInputChange: CustomEvent<string>

Defined in src/components/chat/chat.ts:129

Dispatched when the chat input field gains focus.

igcInputFocus: CustomEvent<void>

Defined in src/components/chat/chat.ts:119

Dispatched when the user sends a message, also with a click on a suggestion. Cancelable: a canceled event does not add the message.

igcMessageCreated: CustomEvent<IgcChatMessage>

Defined in src/components/chat/chat.ts:67

Dispatched when the user clicks an action button of a message, for example like or copy.

igcMessageReact: CustomEvent<IgcChatMessageReaction>

Defined in src/components/chat/chat.ts:72

Dispatched when a plain click or Enter opens a link in a message in the same tab, before the browser navigates. Cancel it to route on the client. Does not bubble.

igcNavigate: CustomEvent<IgcChatMessageLink>

Defined in src/components/chat/chat.ts:83

Dispatched when the user starts or stops typing. The detail is true while the user types.

igcTypingChange: CustomEvent<boolean>

Defined in src/components/chat/chat.ts:114