New to Kendo UI for Angular? Start a free 30-day trial
RemoveEvent
Arguments for the remove
event. The remove
event fires when you are about to remove an uploaded
or selected file. You can cancel this event to prevent removal.
typescript
@Component({
template: `
<kendo-upload (remove)="removeEventHandler($event)"></kendo-upload>
`
})
export class UploadComponent {
public removeEventHandler(e: RemoveEvent) {
console.log('Removing a file');
}
}
Name | Type | Default | Description |
---|---|---|---|
data |
|
An optional object that you send to the | |
files |
|
The files that you will remove from the server. | |
headers |
|
The headers of the request. You can use this to add custom headers to the remove request. |
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. |