JavaScript/jQuery CardView - InitNewCardEvent

The argument type in the initNewCard event.

import { InitNewCardEvent } from "devextreme/ui/card_view"
Type:

Object

component

The UI component's instance.

Type: CardView

data

The data of the inserted card; initially empty.

Type:

Object

element

The UI component's container.

promise

Assign a Promise to this field to perform an asynchronous operation, such as a request to the server.

Type:

Promise<void> (jQuery or native)