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

Method carouselItemDomRef

packages/main/src/Carousel.ts:944–949  ·  view source on GitHub ↗
(idx: number)

Source from the content-addressed store, hash-verified

942 }
943
944 carouselItemDomRef(idx: number) : Array<HTMLElement> {
945 const items = this.getDomRef()?.querySelectorAll(".ui5-carousel-item") || [];
946 return Array.from(items).filter((item, index) => {
947 return index === idx;
948 }) as Array<HTMLElement>;
949 }
950}
951
952Carousel.define();

Callers 2

_handleF7KeyMethod · 0.95
focusItemMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected