New to Kendo UI for AngularStart a free 30-day trial

ClearEvent

Arguments for the clear event. The clear event fires when the Clear button is clicked. At this point, the selected files are about to be cleared.

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

   clearEventHandler(e: ClearEvent) {
     console.log('Clearing the file upload');
   }
 }

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.

In this article
Methods
Not finding the help you need?
Contact Support