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

|

Promise<Boolean> (jQuery or native)

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