github benhowell/react-grid-gallery v0.2.7

latest releases: v1.0.0, v0.5.6, v0.5.5...
7 years ago

Breaking Changes

  • Consistent naming scheme implemented both internally and externally. External breaking change to the onImageSelected prop which has been renamed onSelectImage. All internal instances of Func refactored to Fn. handleClickImage refactored to onClickImage. handleResize refactored to onResize.

The following changes in v0.2.7 allow react-grid-gallery to be used in an (optionally) stateless way.

  • Added optional prop onClickImage. This prop takes a function and is triggered when a lightbox displayed image is clicked. Supplying this prop will override the default onClickImage function.
  • Added optional prop onClickPrev. This prop takes a function and is triggered when the left arrow in lightbox is clicked. Supplying this prop will override the default onClickPrev function.
  • Added optional prop onClickNext. This prop takes a function and is triggered when the right arrow in lightbox is clicked. Supplying this prop will override the default onClickNext function.
  • Added explicit closeLightbox function to the lightbox onClose prop.

Don't miss a new react-grid-gallery release

NewReleases is sending notifications on new releases.