MCPcopy Create free account
hub / github.com/UI5/webcomponents / _navButtonClick

Method _navButtonClick

packages/main/src/Carousel.ts:662–670  ·  view source on GitHub ↗
(e: UI5CustomEvent<Icon, "click">)

Source from the content-addressed store, hash-verified

660 }
661
662 _navButtonClick(e: UI5CustomEvent<Icon, "click">) {
663 const target = e.target as Icon;
664
665 if (target.hasAttribute("data-ui5-arrow-forward")) {
666 this.navigateArrowRight();
667 } else {
668 this.navigateArrowLeft();
669 }
670 }
671
672 /**
673 * Changes the currently displayed page.

Callers

nothing calls this directly

Calls 3

navigateArrowRightMethod · 0.95
navigateArrowLeftMethod · 0.95
hasAttributeMethod · 0.80

Tested by

no test coverage detected