react-grid-gallery
Advanced tools
Changelog
v0.3.0 / 2017-01-14
Fixed bug where lightboxWidth does not exceed 1024px
Bumped react-images to 0.5.2
Changelog
v0.2.8 / 2016-12-10
Updated documentation including correction of onSelectImage
prop documentation.
More descriptive package keywords.
Grammatical tweaks.
Changelog
v0.2.7 / 2016-11-04
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.
Changelog
v0.2.6 / 2016-10-25
Added acknowledgements to docs.
Fixed unitless style warning. Thanks @szromek.
Changelog
v0.2.5 / 2016-09-26
tags
prop takes an array of objects containing tag attributes. value
prop is the text shown on the tag and title
prop is the text shown when hovering over the tag. e.g. tags: [{value: "Ocean", title: "Ocean"}, {value: "People", title: "People"}]
Changelog
v0.2.4 / 2016-09-17
onImageSelected
prop function now takes two optional args, index (index of selected image in images array) and image (the selected image object).Changelog
v0.2.3 / 2016-09-16
Image selection state now handled within image object by optional boolean prop isSelected
. This greatly reduces complexity both within and outside the component as the image itself carries it's selected state. Therefore selectedImages
prop has been removed.
onSelectedImagesChange
prop removed due to the changes outlined above.
Optional onImageSelected
prop added. This prop takes a function and an optional image object as a parameter.
isSelected
removed as first class prop on Image (now a prop on the image item passed in)
Image onToggleSelected
renamed to onImageSelected
.