i need to know what image show now in the carousel, how can i get it?
this.carousel = new Carousel({items:this.items, viewNum:1}).center(t);
this.carousel.on("transitioned",()=>{
zog("transitioned",this.carousel)
})
i think its bug in the code or in docs "selectedIndex" dont found in the PROPERTIES but index it there.
It in ZIM 017 we changed over to index rather than selectedIndex and value rather than currentValue. The old ones have been kept for backwards compatibility (it is also still down lower in the docs).
Just did a test here: Carousel - ZIM 02 - JavaScript Canvas Framework and in the console the button is zogging the index.
1 Like