Skip to content

version 4

Latest
Compare
Choose a tag to compare
@OriAmir OriAmir released this 20 Oct 13:53
· 1 commit to master since this release
ccd5bec

New version (V4)

Improvements

  • Add video support, now the gallery supports 2 types of media - image and video, the video element contains all the options that the image has.
  • Lightbox support in the video element.
  • Add a callback function called onClick when clicking on a media element.
  • Change library variables names and functions to be aligned with both image and video.
  • Update all package dependencies to their latest version.
  • Fix some bugs related to media style/className props.
  • Other improvements and bug fixes.

Breaking change

Gallery options:

  • Rename images prop to media.
  • Rename numOfImagesPerRow prop to numOfMediaPerRow.
  • Rename imageMaxWidth prop to mediaMaxWidth.
  • Rename imagesPaddingBottom prop to mediaPaddingBottom.
  • Rename imagesStyle prop to mediaStyle.
  • Rename selectableItems prop to selectableMedia.
  • Rename mediaPaddingBottom to mediaMarginBottom

Media(Image previously) options:

  • Add type prop - could be image or video where the default is image.
  • Add mediaStyle prop to support style object for specific media element .
  • Add videoType prop to support style object for specific media element .
  • Add additionalVideoProps prop to get more video properties. .
  • Rename imgClassName prop to mediaClassName.