1.0.9 • Published 3 years ago

filepond-plugin-image-overlay v1.0.9

Weekly downloads
82
License
MIT
Repository
github
Last release
3 years ago

Image Overlay plugin for FilePond

License: MIT npm version

The Image Overlay plugin will add a tiny 'eye' icon in front of the filename to allow opening the uploaded image in a large overlay. In case the Image Preview plugin is used, the preview itself will be made clickable as well.

Quick Start

Install using npm:

npm install filepond-plugin-image-overlay

Then import in your project:

import * as FilePond from 'filepond';
import FilePondPluginImageOverlay from 'filepond-plugin-image-overlay';

Also, don't forget to import the belonging styles:

import 'filepond-plugin-image-overlay/dist/filepond-plugin-image-overlay.css'

Register the plugin:

FilePond.registerPlugin(FilePondPluginImageOverlay);

Create a new FilePond instance as normal.

const pond = FilePond.create({
    name: 'filepond'
});

// Add it to the DOM
document.body.appendChild(pond.element);

The functionality will become active when uploading an image.

Configuration

The label of the image overlay icon can be adjusted as follows:

const pond = FilePond.create({
    name: 'filepond',
    labelButtonImageOverlay: 'custom label' // by default 'Open image in overlay file'
});

Demo

View the demo

1.0.9

3 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago