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.

Hi, everyone!

Events

Version 0.4.0 will receive support for events. At this moment I’ve added two major events:

  • beforeChange
  • afterChange.

The first one returns: {currentSlide: ..., nextSlide: ...} when the slide change is initialized, and the second returns: {currentSlide: ...} after change (animation time is not taken into account).

Methods

I added also methods:

  • goTo(slideNumber)
  • goToNext()
  • goToPrev()
  • getCurrentSlide() – returns integer

Please let me know what other data in events you want to be returned (for example slide change method: autoplay, arrow, dot, swipe) or what other events and methods should I add. Please also explain in few words how the new event, method or returned data could be used – this will make it easier to implement.


PS. You can also check README file from develop branch for more info and examples.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
Accontech-Tigrancommented, Oct 28, 2017

Thank you very much for your efforts! Much appreciated.

1reaction
lukaszflorczakcommented, Nov 18, 2017

I can’t promise, but there is a chance that next week. You can install dev version (yarn add vue-agile@dev). There is some bugs in slidesToShow option, but events should work fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery Event Methods
jQuery is tailor-made to respond to events in an HTML page. What are Events? All the different visitors' actions that a web page...
Read more >
Event - Web APIs - MDN Web Docs - Mozilla
Chrome Edge Event Full support. Chrome1. Toggle history Full support. Edge12. Toggle his... Event() constructor Full support. Chrome15. Toggle history Full support. Edge12. Toggle his... bubbles...
Read more >
Events | jQuery API Documentation
Category: Events. These methods are used to register behaviors to take effect when the user interacts with the browser, and to further manipulate...
Read more >
Events Methods
The events can be updates to field values. An app can register event listeners that are invoked when an event occurs. Event Payload...
Read more >
Chapter 3. PROPERTIES, METHODS, AND EVENTS
PROPERTIES, METHODS, AND EVENTS. In addition to the core language fundamentals reviewed in the previous chapter, you will find that the majority of...
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