DataFormsJS v4.8.0 Release Notes
Release Date: 2020-10-05 // over 3 years ago-
- ➕ Added new API function for Framework plugins for reloading plugin.
app.plugins[name].reload()
- This makes using plugins easier for basic HTML pages that are not Single Page Apps (SPA).
- Example usage, before the update if an basic HTML app make content changes and needed to reload a plugin it would look like this for plugins that needed to call
onRouteUnload()
: js app.plugins.imageGallery.onRouteUnload(); app.refreshPlugins();
* or: *js app.plugins.imageGallery.onRouteUnload(); app.plugins.imageGallery.onRendered();
- Now a single easier to read line can be used:
js app.plugins.imageGallery.reload();
- The function gets defined and added automatically by the root
DataFormsJS|app
object whenapp.addPlugin()
is called. If a reload function or property already exists on the plugin the no change is made to the plugin. - File updated:
js/DataFormsJS.js
https://github.com/dataformsjs/dataformsjs/blob/master/js/DataFormsJS.js
- ➕ Added default
cursor: pointer
for React and Framework Image Gallery Controls.- Files Updated:
js/plugins/imageGallery.js
https://github.com/dataformsjs/dataformsjs/blob/master/js/plugins/imageGallery.jsjs/react/es6/ImageGallery.js
https://github.com/dataformsjs/dataformsjs/blob/master/js/react/es6/ImageGallery.js- The Web Component Version
js/web-components/image-gallery.js
already had this behavior.
- ➕ Added new API function for Framework plugins for reloading plugin.