Closed HBinhCT closed 7 years ago
Hi, the events are triggered on the carousel. So in your example, you can listen the events with:
$('#myCarousel').on('detach.bs.local', function() {
alert('detach.bs.local');
});
$('#myCarousel').on('detached.bs.local', function() {
alert('detached.bs.local');
});
$('#myCarousel').on('replace.bs.local', function() {
alert('replace.bs.local');
});
$('#myCarousel').on('replaced.bs.local', function() {
alert('replaced.bs.local');
});
It worked. Thank you very much!
I read here and see Modal-local have 4 event type: detach.bs.local, detached.bs.local, replace.bs.local and replaced.bs.local. But in my code for testing, only detached.bs.local and replace.bs.local worked with alert. You can see here: https://jsfiddle.net/cr2ohy9v/ Sorry for my English not good. Thank you.