@progress/kendo-angular-upload
Version:
Kendo UI Angular Upload Component
50 lines (49 loc) • 1.59 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { PreventableEvent } from './preventable-event';
/**
* Arguments for the `remove` event. The `remove` event fires when you are about to remove an uploaded
* or selected file. You can cancel this event to prevent removal.
*
* ```typescript
* @Component({
* template: `
* <kendo-upload (remove)="removeEventHandler($event)"></kendo-upload>
* `
* })
* export class UploadComponent {
* public removeEventHandler(e: RemoveEvent) {
* console.log('Removing a file');
* }
* }
* ```
*/
export class RemoveEvent extends PreventableEvent {
/**
* An optional object that you send to the `remove` handler as key/value pairs.
*
*/
data;
/**
* The files that you will remove from the server.
*/
files;
/**
* The headers of the request.
* You can use this to add custom headers to the remove request.
*/
headers;
/**
* @hidden
* Constructs the event arguments for the `remove` event.
* @param files - The list of the files that will be removed.
* @param headers - The headers of the request.
*/
constructor(files, headers) {
super();
this.files = files;
this.headers = headers;
}
}