beforeRemove

fires before removing an item from a tree collection

boolean beforeRemove(object removedItem){ ... };

Parameters

removedItemobjectthe object of an item to remove

Returns

booleantrue/false to remove/not remove an item from a data collection

Example

data.events.on("BeforeRemove", function(removedItem){
    console.log("An item will be removed");
    return true;
});

See also
Back to top