21 Feb 2012 11:47 AM #1
Unanswered: Issue with setting the active item, of an active item.
The view in question would logically be something like this:
I have a view with 2 items. A list, and a detailed page that I slide to upon clicking an item of the list. The detailed item is a vertical carousel with 2 items, one a panel, and the second is another carousel that contains a panel, and a list. I have managed to get everything to work with the double carousel, so no issues there. My issue lies with a segmented button that is in a toolbar docked at the top of the second carousel. I was wanting to allow the user to flip between the 2 pages of this carousel with this segmented button as well as the slide to flip action the carousel provides.
So based on the above scenario, I am trying to setActiveItem of an activeItem of the activeItem. Thick, I know lol.
I attempted to call an alert of what the active item of the view was and I got some function back. I took that function and set it to a variable in order to try and see what the active item of it was, but the result came back undefined, leaving me lost.
Any advice on handling this issue. Also, is toggle the proper event to use for the segmented button I described above?
Any and all feedback would be a major help.
Thanks in advance,
ps: Why is the forum often in spanish? I've checked all my settings and I have no clue why this happens. Just curious.
21 Feb 2012 12:02 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
The toolbar is an item of the carousel that you want to flip between right?Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
21 Feb 2012 12:14 PM #3
The toolbar is indeed an item of the carousel. However, it doesn't move whenever you flip between it's two items, nor do I want it to.