Skip to content

Instantly share code, notes, and snippets.

@smbache
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smbache/eeef4bf21b053da780eb to your computer and use it in GitHub Desktop.
Save smbache/eeef4bf21b053da780eb to your computer and use it in GitHub Desktop.
Shiny / Carousel
@smbache
Copy link
Author

smbache commented Aug 13, 2015

could make it work using

$('#caro').bind('slide.bs.carousel', function (e) { 
  $(e.relatedTarget).find('.shiny-bound-output').each(function(i) {
    $('#' + this.id).trigger('shown')
  });
  $(e.target).find('.shiny-bound-output').each(function(i) {
    $('#' + this.id).trigger('hidden')
  }); 
});

Not sure whether that is a best way to do it.

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