onAfterAdd

fires after adding an item to the datastore

void onAfterAdd(string|number id,number index);
idstring|numberthe client-side ID of the new data item
indexnumberthe index, at which the new item was added

Example

view.data.attachEvent("onAfterAdd", function(id, index){
    webix.message("New record was added!");
});

Details

The event does not fire for rows that were added during loading (parsing) from an external file or object.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix web ui framework and page of context menu javascript product.