@progress/kendo-angular-upload
Version:
Kendo UI Angular Upload Component
36 lines (35 loc) • 1.13 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* Arguments for the `cancel` event. The `cancel` event fires when
* you cancel the upload of a file or batch of files.
*
* ```typescript
* @Component({
* template: `
* <kendo-upload (cancel)="cancelEventHandler($event)"></kendo-upload>
* `
* })
* export class UploadComponent {
* public cancelEventHandler(e: CancelEvent) {
* console.log('Canceling file upload', e.files);
* }
* }
* ```
*/
export class CancelEvent {
/**
* The files that you canceled during the upload process.
*/
files;
/**
* @hidden
* Constructs the event arguments for the `cancel` event.
* @param files - The list of the files that were going to be uploaded.
*/
constructor(files) {
this.files = files;
}
}