Kartik DetailView : Attaching javascript afterDelete event?

Hi folks,

Is there a simple way to do this? Although I make use of the widget-specific alerts in Kartik’s excellent DetailView, I am also adding a widget-independent JS alert box to the page to which I wish to push event messages to - for example, if I delete the database record that the widget represents, I wish to remove the widget from the page entirely and push the delete success method to the widget-independent alert box.

Any tips on the best way to do this? I am currently looking at rewriting the detail-view.js file but was wondering if there is a simpler way to do this?

Thanks.