Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@vivekmunde vivekmunde released this 27 Aug 08:45
· 1 commit to master since this release

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 by src
  • Parameter errorImageSrc has been replaced by fallbackImageSrc
  • Parameters useAjax, encodeToBase64 & ajaxOptions have been removed
  • New parameter loader has been introduced