Enable or Disable in EJ 1 Angular Uploadbox
7 Jun 2017 / 1 minute to read
This feature helps set the enable or disable option for Uploadbox by setting Boolean type value to enabled property. For enable or disable option, set enabled property to ‘false’. The data type is Boolean.
The following code explains you for the configuration of enabled property in Uploadbox.
<div style="width:100px;height:35px;">
<ej-uploadbox id="UploadDefault" [saveUrl]="saveURL" [removeUrl]="removeURL" [enabled]="false"></ej-uploadbox>
</div>
import {Component} from '@angular/core';
@Component({
selector: 'ej-app',
templateUrl: 'app/components/uploadbox/uploadbox.component.html'
})
export class UploadBoxComponent {
saveURL:string;
removeURL:string;
constructor() {
this.saveURL = '../saveFiles.ashx';
this.saveURL = '../removeFiles.ashx';
}
}
Configure saveFiles.ashx and removeFiles.ashx files as mentioned in the Save file action and Remove file action respectively.
The following screenshot displays the output.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page