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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix javascript dashboard framework and page of javascript menu product.