I have a collection of functions stored in functions.js file that I include to the app.
One of the functions processes data from ckeditor in a custom built saving function. I would like to open a preloader or progressbar from my function in the functions.js file, that is defined outside the initialized F7 app.
How can I do this? How can I call F7 components from a function that is defined outside the app initialization?
I think I would try and make the save function as generic as possible then maybe trigger the preloader outside and call the save function passing in a callback function to cancel the preloader… something like that.
Another option might be for your save function to create a few custom events and use those to trigger progress bars and such like.