Skip to content

Commit 81ab464

Browse files
authored
Merge pull request #90 from dahabi/master
carousel event
2 parents db3c35d + fcb8e9f commit 81ab464

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

widget/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,13 @@
600600
}));
601601
img.alt = "Carousel Image";
602602
carouselContainer.appendChild(img);
603+
img.addEventListener("click", function () {
604+
buildfire.actionItems.execute(carouselImages[0], function (err, result) {
605+
if (err) {
606+
console.warn('Error openning slider action: ', err);
607+
}
608+
});
609+
});
603610
}
604611

605612
carouselContainer.classList.remove('hide');

0 commit comments

Comments
 (0)