You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add emblaApi as a first parameter to event callbacks. This will make it easier to define event handler functions/callbacks without the need of having the emblaApi variable in the same scope.
Feature specification
Before this feature:
constonSelect=(eventName: EmblaEventType)=>{console.log(`Embla just triggered ${eventName}!`)}
After this feature:
constonSelect=(emblaApi: EmblaCarouselType,eventName: EmblaEventType)=>{console.log(`Embla just triggered ${eventName}!`)}
The text was updated successfully, but these errors were encountered:
Feature request is related to
Describe the solution you'd like
emblaApi
as a first parameter to event callbacks. This will make it easier to define event handler functions/callbacks without the need of having theemblaApi
variable in the same scope.Feature specification
Before this feature:
After this feature:
The text was updated successfully, but these errors were encountered: