Skip to content

Commit

Permalink
Add configuration options to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsboogaard-luminis committed Feb 18, 2022
1 parent 46f0050 commit b046171
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ document.body.appendChild(pond.element);
```
The preview will become active when uploading an video or audio file.

## Configuration

Both the video and audio preview can be enabled or disabled. Use the following options:
```js
const pond = FilePond.create({
name: 'filepond',
allowVideoPreview: true, // default true
allowAudioPreview: true // default true
});
```

## Default styles
Be sure to include this lib's styles, by importing the minified css.
```js
Expand Down

0 comments on commit b046171

Please sign in to comment.