Enables or Disables the Uploadbox

7 Jun 20171 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.

  • HTML
  • <div style="width:100px;height:35px;">
    
    <ej-uploadbox id="UploadDefault" [saveUrl]="saveURL" [removeUrl]="removeURL" [enabled]="false"></ej-uploadbox>
    
    </div>
  • HTML
  • 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.