JavaScript/jQuery Chat - MessageDeletingEvent

The argument type in the messageDeleting event.

import { MessageDeletingEvent } from "devextreme/ui/chat"
Type:

Object

cancel

Allows you to cancel message deleting.

Type:

Boolean

|

PromiseLike object (jQuery, native, etc)

true, a Promise resolved with true, or a rejected Promise stops message removal.
false or a Promise resolved with false or undefined continues message removal.

component

The UI component's instance.

Type: Chat

element

The UI component's container.

message

The message that is being deleted.

Type:

Message