question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aakhan89commented, Mar 22, 2019

@xiaolin

I will create codeSandbox and share with you

0reactions
aakhan89commented, Mar 24, 2019

@pthapli999

Can you please share an example, it would be highly appreciated Thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found