Release Notes
Dependency Inversion
The m-image
component now accepts a loader
param which accepts a loader function, which is used to download the image from the source, e.g. through ajax / fetch call. This param can be supplied with any custom loader as well.
In previous version, the component m-image
was tightly coupled with image loaders. This was stopping the component to scale to accept any external custom loader.
Fetch Approach
Fetch API approach to download the image from source.
Parameters Update
- Parameter
imageSrc
has been replaced bysrc
- Parameter
errorImageSrc
has been replaced byfallbackImageSrc
- Parameters
useAjax
,encodeToBase64
&ajaxOptions
have been removed - New parameter
loader
has been introduced