www.dextsolution.com
DEXTUPLOAD
X5
Reference > component

## getEnableDnd

- Version 1.4.1.0 or later

- Explanation

  Returns whether file drag and drop is enabled.

- Uses

      enableDnd = component.getEnableDnd();

- Return

  true, false

## setEnableDnd

- Version 1.4.1.0 or later

- Explanation

  Sets whether to use file drag and drop.

  The DEXTUploadX5 component can turn file drag and drop on and off.

      function onDX5Created(id) {
          var dx = dx5.get(id);
          dx.setEnableDnd(false);
          // "false" is printed.
          console.log(dx.getEnableDnd());
      }

- Uses

      component.setEnableDnd(enable);

- Parameters

  Name | Type | Explanation
  --- | --- | ---
  enable | Boolean | If true, supports file drag and drop. The default value is true.