# \[Question\]\[Perspective\] What variable changes in a Carousel when a Carousel item is clicked?

**URL:** <https://forum.inductiveautomation.com/t/question-perspective-what-variable-changes-in-a-carousel-when-a-carousel-item-is-clicked/22252>\
**Category:** Ignition Early Access\
**Created:** [January 31, 2019, 3:05pm UTC](https://forum.inductiveautomation.com/t/question-perspective-what-variable-changes-in-a-carousel-when-a-carousel-item-is-clicked/22252 "2019-01-31T15:05:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![joe.friedrich](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joe.friedrich/32/7505_2.png) [@joe.friedrich](https://forum.inductiveautomation.com/u/joe.friedrich)\
**Post date:** [January 31, 2019, 7:28pm UTC](https://forum.inductiveautomation.com/t/question-perspective-what-variable-changes-in-a-carousel-when-a-carousel-item-is-clicked/22252/5 "2019-01-31T19:28:55Z")

</div>

\<Note: edited the title of the thread to clarify the original question (removed the word 'view', clarified where i am looking for the variable in question.)\>

> You technically haven’t changed anything about the carousel - it currently is displaying activePane = 0 even after your click.

Correct. activePane tracks which 'dot' you are on (blue, at the bottom of the screen). I cannot find how the yellow box knows to draw itself around carousel.views[1].

> [@Swiping Cards in Perspective](http://forum.inductiveautomation.com/t/swiping-cards-in-perspective/21402/2):
>
> The important part (at least, re: swiping) is actually a carousel. I’ve attached an extremely basic example with two different pages in a carousel - each is actually the same view, but with a different number of ‘cards’ visible. The ‘Card’ view is just a coordinate container; then the ‘Page’ is a flex container with a flex repeater within it. On the ‘Landing’ view, the carousel is set to ignore the default view height and width, then then also set to take the entire space available in its contai…

I took Paul Griffith's Cards.proj (which you should be able to download from the post linked above) and manipulated it to make a better screenshot.

[Landing.json](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f401e12fad5d3cd2106984e938753abb6a0a51fa.json) (2.0 KB)

Paul's project: Landing has a Carousel. Landing's Carousel loads Page for each Carousel item, which contains a Flex Repeater. Page's Flex Repeater loads Card for each repeat. Card contains a Tank and Label.

Please let me know what further clarifications I can make.

---

_[View the full topic](https://forum.inductiveautomation.com/t/question-perspective-what-variable-changes-in-a-carousel-when-a-carousel-item-is-clicked/22252)._
