I am running into a bit of an issue trying to have a vertically scroll-able list (ion-list) inside of horizontal sliders (ion-slidebox). I was able to achieve my desired layout but my lists won’t scroll. Please what I’m I missing?
Thank you @mhartington for your demo, a quick one - is it possible to have the slides remember their individual scroll positions and all with this layout?
Hi @mhartington, you are right - it does remember scroll positions between slides, yet to test across views which would be what I’m really trying to achieve, say coming from other parts/views of my app that are not slides - can it remember my slide and scroll position as well?
Thank you for the hint, however, have got one more issue to tackle - when changing views, I’d like to come back to the slide I was on before navigating away. Is there any api function I can hook into to remember my previous slide when coming from a different view?
Alright then, thanks for all your help. Would have to rework my app layout while I wait for the changes to come through, except I can find a work around tentatively.
Funnily enough I started off with tabs and most likely would ship the first version of the app with tabs layout - looking into using slidebox owing to client’s pressure to have this ‘usually’ native feature they’ve seen and continue to use in so many mobile apps. I must say I got very close to pulling it off, if not for the missing slide history!
As an aside, I don’t have any transition animation moving from one tab to the other, what do you reckon I may be doing wrong? Thanks.
That was easy, thank you - didn’t think of adding the class to my ion-tabs directive. I’m opting for using swipe events (e.g. on-swipe-left=“expression”) to simulate the sliding behavior for this initial release.
Yeah, something similar to that. I noticed the tabs on your codepen sample above only slide to the left, no matter the direction one is coming from, that’s not quite right. Any ideas?
I am also dealing with the issue of losing the slidebox position after navigating away, and I can tell you how I solved it… essentially before I navigate away from the slidebox, I send the current state (slide position and any other data) to a service. The controller looks for this state information on startup and repopulates the slide position, data, etc. That way, when you navigate back to the tab, the slidebox is in the right position, etc.
i will send you ma code see once …if i change the location it must be add new slides everytime but here slide pager not shown as of slides length it will add plus two for lenght evry time