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

skip_tabs starts from 0 #7

Closed
costa-alex opened this issue Sep 14, 2022 · 3 comments
Closed

skip_tabs starts from 0 #7

costa-alex opened this issue Sep 14, 2022 · 3 comments
Labels
📖 documentation Improvements or additions to documentation

Comments

@costa-alex
Copy link

Hi,
I have the following configuration on my dashboard:
swipe_nav: prevent_default: true swipe_amount: 20 skip_hidden: true wrap: true skip_tabs: 5,6

I have 6 tabs on the dashboard and I want to skip the last two (they are some grafana charts, no need to see those on the mobile). If i'm on the 4th tab and swipe right I want to wrap swipe to the first tab but it goes to the 5th tab, ignoring the skip_tabs configuration.

Dashboard has 6 tabs only, no hidden tabs.

Thanks

@zanna-37
Copy link
Owner

Tabs count starts at 0.
First tab is 0, second is 1, and so on. Try with skip_tabs: 4,5.

@zanna-37 zanna-37 added the 🔍 more info needed Further information is requested label Sep 14, 2022
@costa-alex
Copy link
Author

That explains it :)

Thanks, it's working now.

@zanna-37 zanna-37 added 📖 documentation Improvements or additions to documentation and removed 🔍 more info needed Further information is requested labels Sep 14, 2022
@zanna-37 zanna-37 reopened this Sep 14, 2022
@zanna-37
Copy link
Owner

I'll leave it open so I can update the documentation and add this detail.
Thank you!

@zanna-37 zanna-37 changed the title Swipe to skipped tabs skip_tabs starts from 0 Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants