A shortcut function to add event listeners
import { addListener } from 'filepond/utils';
const unlisten = addListener(myButton, 'click', (e) => {
// handle the event
});
// This removes the event listener
unlisten();
A shortcut function to add event listeners
import { addListener } from 'filepond/utils';
const unlisten = addListener(myButton, 'click', (e) => {
// handle the event
});
// This removes the event listener
unlisten();