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

An object representing the inserted item.

key:

Object

|

String

|

Number

A key value of the inserted item.

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

An object representing the item being 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 array.

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

An object containing 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

A key value of the removed item.

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

A key value of the item being 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

A key value of the updated item.

values:

Object

New values for the updated item.

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

A key value of the item being updated.

values:

Object

New values for the item being updated.

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