UNPKG

@progress/kendo-angular-upload

Version:

Kendo UI Angular Upload Component

44 lines (43 loc) 1.52 kB
/**----------------------------------------------------------------------------------------- * 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'; import { FileInfo } from '../types'; /** * Arguments for the `select` event. The `select` event fires when the user * selects a file or multiple files for upload. If you cancel the event, the selection is prevented. * * ```ts-no-run * @Component({ * selector: 'my-upload', * template: ` * <kendo-upload * [saveUrl]="uploadSaveUrl" * [removeUrl]="uploadRemoveUrl" * (select)="selectEventHandler($event)"> * </kendo-upload> * ` * }) * export class UploadComponent { * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint * * selectEventHandler(e: SelectEvent) { * console.log('File selected'); * } * } * ``` */ export declare class SelectEvent extends PreventableEvent { /** * The list of the selected files. */ files: Array<FileInfo>; /** * @hidden * Constructs the event arguments for the `select` event. * @param files - The list of the selected files. */ constructor(files: Array<FileInfo>); }