Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Carousel slide event should include the next item #3855

wants to merge 1 commit into


None yet
3 participants

If the slide event presented which is the next item to be displayed, it is possible to implement clickable thumbnails of the slided images with proper animation.


fat commented Jun 20, 2012

sorry we don't pass extra params to events. We do however do related targets - which would apply here. Also, please provide unit tests and make requests against wip branches. Thanks!

@fat fat closed this Jun 20, 2012

@fat Can you please elaborate on the "related targets" part? I've tried finding any reference to it in the docs and the code, no luck.

Basically, you change

e = $.Event('slide')


e = $.Event('slide', {
  relatedTarget: $next[0]

Then you can see it by looking at the event's object when triggered (e.g.: e.relatedTarget).

You can see this in action in bootstrap-tab.js.

@R1ch0 Awesome, had no idea that feature even existed. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment