How can I access the callback for "delete" button in the Widget?


#1

When user removes a file, onChange callback is called:

widget.onChange(function(file) {
  if (!file) {
    // widget is cleared
  } else {
    // new file is selected
  }
});