New to Kendo UI for Angular? Start a free 30-day trial
SuccessEvent
Arguments for the success
event. The success
event fires when
the selected files are successfully uploaded or removed.
ts
@Component({
selector: 'my-upload',
template: `
<kendo-upload
[saveUrl]="uploadSaveUrl"
[removeUrl]="uploadRemoveUrl"
(success)="successEventHandler($event)">
</kendo-upload>
`
})
export class UploadComponent {
uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
successEventHandler(e: SuccessEvent) {
console.log('The ' + e.operation + ' was successful!');
}
}
Name | Type | Default | Description |
---|---|---|---|
files |
|
The list of the files that were uploaded or removed. | |
operation |
|
The operation type ( | |
response |
|
The response object returned by the server. |
Methods
isDefaultPrevented | ||||
---|---|---|---|---|
If the event is prevented by any of its subscribers, returns | ||||
|
preventDefault |
---|
Prevents the default action for a specified event. In this way, the source component suppresses the built-in behavior that follows the event. |