b-img or b-img-lazy "@error" support
See original GitHub issueI am currently not able to use b-img-lazy or b-img for my needs because I also need to use @error for the image, so if an image doesn’t load properly, I can handle it cleanly.
Is there any way I can use @error within these b-img components? Or is there a way I can use the lazy-loading functionality within the basic img element?
This is an example of what I’m currently doing:
<img :src="item.image" @error="noImage(item)" class="rounded img-fluid" />
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
bootstrap-vue - UNPKG
n return true\n }\n}\n\n/**\n * Warn when no Promise support is given\n ... },\n BImg: {\n blankColor: 'transparent'\n },\n BImgLazy: {\n blankColor: ......
Read more >Image | Components - BootstrapVue
BootstrapVue's image components support rounded images, thumbnail styling, alignment, and even the ability to ... <b-img-lazy>, BImgLazy, bootstrap-vue ...
Read more >b-card-img-lazy not firing error event on image not found
I have a b-card-img-lazy , as the title suggests, but it does not fire the load event when the image is fully "downloaded"...
Read more >Image Not Displaying In Loop Vue.Js - ADocLib
JavaScript ES6 promise for loop; How to capture vuejs errors from a ... Support for lazy loaded images is available via the <bimglazy>...
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
You should be able to access the native event via
@error.native="noImage(item)"
<b-img>
is a functional component, so you shouldn’t need the.native
modifier (I think, but I may be wrong).For
<b-img-lazy>
(which is a statefull component instance) you will need the.native
event modifier.