pqina / svelte-filepond

🔌 A handy FilePond adapter component for Svelte
MIT License
247 stars 10 forks source link

setOptions not available #12

Closed dd10-e closed 2 years ago

dd10-e commented 2 years ago

Hello Rik !

It seems that we can't setOptions use this way :

import FilePond, { registerPlugin, setOptions } from 'svelte-filepond';
import es_ES from 'filepond/locale/es-es.js';
// ...

setOptions(es_ES)

It seems to be a missing feature from the original Filepond library. Should it be done this way ?

rikschennink commented 2 years ago

It's indeed not exported, with the framework you should use the component to interact with FilePond. I'd just spread the props on the component instead.