(event)
| 736 | } |
| 737 | |
| 738 | static dataApiClickHandler(event) { |
| 739 | const target = getElementFromSelector(this); |
| 740 | |
| 741 | if (!target) { |
| 742 | return; |
| 743 | } |
| 744 | |
| 745 | const config = { |
| 746 | ...Manipulator.getDataAttributes(target), |
| 747 | ...Manipulator.getDataAttributes(this), |
| 748 | }; |
| 749 | const slideIndex = this.getAttribute("data-twe-slide-to"); |
| 750 | |
| 751 | if (slideIndex) { |
| 752 | config.interval = false; |
| 753 | } |
| 754 | |
| 755 | Carousel.carouselInterface(target, config); |
| 756 | |
| 757 | if (slideIndex) { |
| 758 | Carousel.getInstance(target).to(slideIndex); |
| 759 | } |
| 760 | |
| 761 | event.preventDefault(); |
| 762 | } |
| 763 | } |
| 764 | |
| 765 | export default Carousel; |
nothing calls this directly
no test coverage detected