@progress/kendo-angular-upload
Version:
Kendo UI Angular Upload Component
45 lines (44 loc) • 1.4 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { FileInfo } from '../types';
/**
* Arguments for the `pause` event. The `pause` event fires when the user
* pauses a file that is currently uploading.
*
* ```ts-no-run
* @Component({
* selector: 'my-upload',
* template: `
* <kendo-upload
* [chunkable]="true"
* [saveUrl]="uploadSaveUrl"
* [removeUrl]="uploadRemoveUrl"
* (pause)="pauseEventHandler($event)">
* </kendo-upload>
* `
* })
* export class UploadComponent {
* uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
* uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
*
* pauseEventHandler(ev: PauseEvent) {
* console.log('File paused');
* }
* }
* ```
*
*/
export declare class PauseEvent {
/**
* The file that is going to be paused.
*/
file: FileInfo;
/**
* @hidden
* Constructs the event arguments for the `pause` event.
* @param file - The file that is going to be paused.
*/
constructor(file: FileInfo);
}