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.

inline @load @loading @error events

See original GitHub issue

How can we use add these event listener per inline item?

for example

<img v-for="(item, index) in items" v-lazy="https://example.com/photo.jpg" @loading="onLoading(index)"/>

We specifically want to pass the index to the callback.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
hilongjwcommented, Jul 26, 2018

it should be implemented in the lazyImage component, but not yet

1reaction
Artem-Schandercommented, Aug 19, 2021

@hilongjw is the implementation from @WisdomSky PR worthy? It would be nice to get the events.

@WisdomSky thanks for the work, I’ll use your fork for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Getting error while loading the inline table in ta...
When I trying to load the inline table i am facing the attached error. 2 days back the qv application was working properly....
Read more >
Inline loading - Carbon Design System
The error loading state indicates that the action did not successfully complete. If an error occurs, the inline loading component becomes inactive and...
Read more >
Resource loading: onload and onerror
The load and error events also work for other resources, basically for any resource that has an external src . For example:.
Read more >
Cannot use inline 'onload' because of CSP · Issue #312 - GitHub
When you have a CSP without unsafe-inline , you cannot use onload inline. This it will throw an error, and therefore not load...
Read more >
Refused to execute inline event handler because it violates ...
If this wasn't a Chrome extension, you could add 'unsafe-inline' to the list of acceptable places to load scripts from, but you should...
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