defaultImage property
See original GitHub issue### defaultImage property say below:
defaultImage: String, default undefined
an image src pointing to your default image if an image fails to load
handles both slide image, and thumbnail image
I have an item={images}
and images is array of multiple images for original
& thumbnail
the confusion is when internet stop working so defaultImage should be shown instead of images which I have an in array of images until my internet working fine
import defaultImage from '../assets/images/default.jpg';
const images = [
{
original: 'http://lorempixel.com/1000/600/nature/1/',
thumbnail: 'http://lorempixel.com/250/150/nature/1/',
},
{
original: 'http://lorempixel.com/1000/600/nature/2/',
thumbnail: 'http://lorempixel.com/250/150/nature/2/'
},
{
original: 'http://lorempixel.com/1000/600/nature/3/',
thumbnail: 'http://lorempixel.com/250/150/nature/3/'
}
]
return<ImageGallery items={images} defaultImage={defaultImage} showBullets={true} showIndex={true} showThumbnails={false}/>
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
DefaultImage Property
This property has been deprecated. Gets or sets the default image to use when creating an image mark. Syntax. Visual Basic; C#; Managed...
Read more >DefaultImage Property - Infragistics Windows Forms™ Help
DefaultImage Property (EmbeddableImageRenderer). Gets/sets the default image. If an image can't be constructed from the data supplied by the owner, ...
Read more >NavigationalCategory.DefaultImage Property (Microsoft.Dynamics ...
Gets the default image. Namespace: Microsoft.Dynamics.Retail.SP.CommonFeatures. Assembly: Microsoft.Dynamics.Retail.SP.Web.Common (in Microsoft.Dynamics.
Read more >WebGrabber.DefaultImage Property
The default image use when an web pages image file is unavailable. (Native Engine Only). Remarks. The default value is an empty string....
Read more >DefaultImage Property (UI) | Leadtools.Medical.Workstation.UI ...
Gets or sets the image that will be displayed on the System.Windows.Forms.ToolStripMenuItem. Syntax. C#. C++. public override Image DefaultImage { get; set; }....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@xiaolin
I will create codeSandbox and share with you
@pthapli999
Can you please share an example, it would be highly appreciated Thanks