ArrayStore Events

This section describes events fired by this Store.

Subscribing to any event described in this section is equivalent to passing the event handling function to the corresponding configuration option. The only difference is that the function passed to the configuration option is the first within the stack of event handlers.

inserted

Fired after a data item has been added.

JavaScript
myStore.inserted.add(function() {
    console.log("A data item has been inserted");
});

inserting

Fired before a data item is added.

JavaScript
myStore.inserting.add(function() {
    console.log("A data item is being inserted");
});

loaded

Fired after data has been loaded.

JavaScript
myStore.loaded.add(function() {
    console.log("The data has been loaded");
});

loading

Fired before data is loaded.

JavaScript
myStore.loading.add(function() {
    console.log("The data is being loaded");
});

modified

Fired after data has been modified.

JavaScript
myStore.modified.add(function() {
    console.log("The data has been modified");
});

modifying

Fired before the data is modified.

JavaScript
myStore.modifying.add(function() {
    console.log("The data is being modified");
});

removed

Fired after a data item has been removed.

JavaScript
myStore.removed.add(function() {
    console.log("A data item has been removed");
});

removing

Fired before a data item is removed.

JavaScript
myStore.removing.add(function() {
    console.log("A data item is being removed");
});

updated

Fired after a data item has been updated.

JavaScript
myStore.updated.add(function() {
    console.log("A data item has been updated");
});

updating

Fired before a data item is updated.

JavaScript
myStore.updating.add(function() {
    console.log("A data item is being updated");
});