All Components

DataEvent

The arguments for the data, add, or remove events.

dataItem Object

The data item that will be added or removed.

index number

The index of the data item.

Constructors

DataEvent (index: number, dataItem: Object)

Constructs the event arguments for the data, add, or remove events.

Parameters

index number

The index of the data item.

dataItem Object

The data item that will be added or removed.

Methods

isDefaultPrevented

If the event was prevented
by any of its subscribers, returns true.

Returns

boolean true if the default action was prevented. Otherwise, returns false.

preventDefault

Prevents the default action for a specified event.
In this way, the source component suppresses
the built-in behavior that follows the event.

In this article