piyushg098
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018
03:24 AM
Sliding panel behaviour
I am using sliding panel in my project. Suppose I have panel A (on left) and B(on right) in a panel set. Now I slide to panel C from B and now my panel set has panel B and C. Similarly I keep on going level deep such that now panel set has panel E(on left) and F(on right).
Now I want that my panel set to slide and show the initial panel A and B directly once I do some action(say by pressing a button present on panel F).
How can this be achieved? It's similar behavior as you see on Roku home screen. For eg: If I am on Roku caption style setting and I press the home button, the screen slides back to the home page listing and animate to Home option irrespective of how many panels were present in between.
I tried goBackCount property of the panel but to no avail. Please help.
Now I want that my panel set to slide and show the initial panel A and B directly once I do some action(say by pressing a button present on panel F).
How can this be achieved? It's similar behavior as you see on Roku home screen. For eg: If I am on Roku caption style setting and I press the home button, the screen slides back to the home page listing and animate to Home option irrespective of how many panels were present in between.
I tried goBackCount property of the panel but to no avail. Please help.
5 REPLIES 5
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018
05:56 AM
Re: Sliding panel behaviour
I think if you remove all the nodes except for A and B the panels will automatically focus; did you try it?
Well the doc says you shouldn't do that. But they don't say how to accomplish what you want, that's annoying! Maybe you can send left key presses w ECP to do it?
Well the doc says you shouldn't do that. But they don't say how to accomplish what you want, that's annoying! Maybe you can send left key presses w ECP to do it?
aspiring
piyushg098
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018
08:37 AM
Re: Sliding panel behaviour
I didn't try removing it since it says in doc.
piyushg098
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2018
08:24 PM
Re: Sliding panel behaviour
I did try removing the panels by using removeChild() but it seems that doesn't work in case of sliding panel since the panel count was not changing even after removing. Do you have any other workaround?
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2018
12:36 PM
Re: Sliding panel behaviour
I've never done it but you could try sending left presses with ECP.
Alternative is build custom component that does what you need, but that's probably a long road.
Alternative is build custom component that does what you need, but that's probably a long road.
aspiring
grossmail1
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2018
07:45 AM
Re: Sliding panel behaviour
I would think you could get clever with using the goBackCount attr on a panel