🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

filepond-plugin-drag-reorder

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filepond-plugin-drag-reorder

A plugin for FilePond that uses HTML drag and drop to reorder items.

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
32
-30.43%
Maintainers
1
Weekly downloads
 
Created
Source

FilePond Plugin - Drag Reorder

This is a plugin for FilePond.

This plugin attempts to enable users to drag an existing image in the FilePond instance, drag to a desired order, and drop it to reorder it.

This plugin has no configuration options.

Installation

NPM

npm i filepond-plugin-drag-reorder

Usage

As module

import * as FilePond from 'filepond';
import FilepondPluginDragReorder from 'filepond-plugin-drag-reorder';

FilePond.registerPlugin(FilePondPluginDragReorder);

As manual installation

<script src="path/to/filepond-plugin-drag-reorder.js"></script>
<script src="path/to/filepond.js"></script>

<script>
FilePond.registerPlugin(FilePondPluginDragReorder);
</script>

Note

  • This plugin works by removing the original photo and re-add it on drop, which means every time an image is dragged and dropped to reorder, the original image is removed and a new image is created.
  • This plugin has only been tested on FilePond v4.5.0. It should technically work on FilePond versions that internally support dropping a file.

Known Issue

  • On reorder, the original file name will be gone.

Keywords

filepond

FAQs

Package last updated on 21 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts