RemoveEvent

Arguments for the remove event. The remove event fires when an uploaded
or selected file is about to be removed. If you cancel the event, the removal is prevented.

@Component({
   selector: 'my-upload',
   template: `
   <kendo-upload
     [saveUrl]="uploadSaveUrl"
     [removeUrl]="uploadRemoveUrl"
     (remove)="removeEventHandler($event)">
   </kendo-upload>
   `
 })
 export class UploadComponent {
   uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
   uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint

   removeEventHandler(e: RemoveEvent) {
     console.log('Removing a file');
   }
 }

data Object

An optional object that is sent to the remove handler in the form of a key/value pair.

files Array<FileInfo>

The list of the files that will be removed.

headers HttpHeaders

The headers of the request.

Constructors

RemoveEvent (files: Array<FileInfo>, headers: HttpHeaders)

Constructs the event arguments for the remove event.

Parameters

files Array<FileInfo>

The list of the files that will be removed.

headers HttpHeaders

The headers of the request.

Methods

isDefaultPrevented

If the event is prevented by any of its subscribers, returns true.

Returns

boolean true if the default action was prevented. Otherwise, returns false.

preventDefault

Prevents the default action for a specified event.
In this way, the source component suppresses the built-in behavior that follows the event.