Events

This section describes events raised by this Data Store object.

To handle events, use one of the following methods.

inserted

Fires after a data item is added.

Type:

Event

Function parameters:
values:

Object

The inserted item.

key:

Object

|

String

|

Number

The item's key.

To learn how to handle events, refer to the Events and Change Tracking topic.

inserting

Fires before a data item is added.

Type:

Event

Function parameters:
values:

Object

The item to be inserted.

To learn how to handle events, refer to the Events and Change Tracking topic.

loaded

Fires after data is loaded.

Type:

Event

Function parameters:
result:

Array<any>

The loaded data.

To learn how to handle events, refer to the Events and Change Tracking topic.

loading

Fires before data is loaded.

Type:

Event

Function parameters:
loadOptions:

LoadOptions

Data processing settings.

To learn how to handle events, refer to the Events and Change Tracking topic.

modified

Fires after data is modified.

Type:

Event

To learn how to handle events, refer to the Events and Change Tracking topic.

modifying

Fires before the data is modified.

Type:

Event

To learn how to handle events, refer to the Events and Change Tracking topic.

removed

Fires after a data item has been removed.

Type:

Event

Function parameters:
key:

Object

|

String

|

Number

The removed item's key.

To learn how to handle events, refer to the Events and Change Tracking topic.

removing

Fires before a data item is removed.

Type:

Event

Function parameters:
key:

Object

|

String

|

Number

The key of the item to be removed.

To learn how to handle events, refer to the Events and Change Tracking topic.

updated

Fires after a data item has been updated.

Type:

Event

Function parameters:
key:

Object

|

String

|

Number

The updated item's key.

values:

Object

New item values.

To learn how to handle events, refer to the Events and Change Tracking topic.

updating

Fires before a data item is updated.

Type:

Event

Function parameters:
key:

Object

|

String

|

Number

The key of the item to be updated.

values:

Object

New item values.

To learn how to handle events, refer to the Events and Change Tracking topic.