onAfterDelete

fires after an item is removed

void onAfterDelete(object item);
itemobjectthe item object

Example

$$("datatable").attachEvent("onAfterDelete", function(item){
    // some code here
});

Details

The item object contains the following properties:

  • rowId (string|number) - the ID of the row of the removed item
  • columnId (string|number) - the ID of the column of the removed item
  • toString (function) - a custom method that returns the row id, if it has been passed to the methods that take id as a parameter

Note that your code will continue to work as expected, even if you pass the object directly instead of the row ID, since it resolves cleanly via toString().

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