react-image-gallery
Advanced tools
Comparing version 0.6.8 to 0.6.9
@@ -669,3 +669,8 @@ 'use strict'; | ||
alt: item.thumbnailAlt, | ||
onError: onThumbnailError.bind(_this5) }) | ||
onError: onThumbnailError.bind(_this5) }), | ||
_react2.default.createElement( | ||
'div', | ||
{ className: 'image-gallery-thumbnail-label' }, | ||
item.thumbnailLabel | ||
) | ||
)); | ||
@@ -672,0 +677,0 @@ } |
{ | ||
"name": "react-image-gallery", | ||
"version": "0.6.8", | ||
"version": "0.6.9", | ||
"description": "React Carousel, React Image gallery, React Slide Show component", | ||
@@ -5,0 +5,0 @@ "main": "./build/image-gallery", |
@@ -66,2 +66,3 @@ React Image Gallery | ||
thumbnailAlt: 'thumbnail-alt', | ||
thumbnailLabel: 'Optional', | ||
description: 'Optional description...' | ||
@@ -68,0 +69,0 @@ srcSet: 'Optional srcset (responsive images src)' |
@@ -595,7 +595,9 @@ import React from 'react'; | ||
onClick={event => this.slideToIndex.call(this, index, event)}> | ||
<img | ||
src={item.thumbnail} | ||
alt={item.thumbnailAlt} | ||
onError={onThumbnailError.bind(this)}/> | ||
<img | ||
src={item.thumbnail} | ||
alt={item.thumbnailAlt} | ||
onError={onThumbnailError.bind(this)}/> | ||
<div className='image-gallery-thumbnail-label'> | ||
{item.thumbnailLabel} | ||
</div> | ||
</a> | ||
@@ -602,0 +604,0 @@ ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
265836
2349
183