Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement - Reverse tabs order #1

Open
ghost opened this issue Aug 13, 2019 · 0 comments
Open

Enhancement - Reverse tabs order #1

ghost opened this issue Aug 13, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 13, 2019

I came across a simple obstacle on this package that i needed to use on an app of mine and that is to have the tabs reversed.
This is: in the example where you start with "Burgers" and end with "Dessert", on the tabs "Burgers" would be the last tab on the list and "Dessert" the first one, and the list would start active on "Burgers" as it is now.

I played a bit with the source code and using the JS reverse function i made it, but i couldn't figure out how to do this reversion on the beginning to prevent the animation on the tabs going from the first to the last index. And it bugged when clicking on a tab to go to a category since the indexes are not corresponding to the right one.

To clarify the purpose of this feature, it is to do something similar to what the Revolut App does on its dashboard with the transactions history where i will have a list of items categorized by month/year and while scrolling i want it to move the tabs to the previous month and so on. And for that it makes sense that all the previous dates are before the current one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants