Repository navigation
Add swipe gesture on q-tab-panels or q-tab-panel #18567
|
This feature is:
|
Answered by
dfbustosus
Oct 17, 2026
Replies: 1 comment
|
Good news: this already exists — it's the <q-tab-panels
v-model="panel"
animated
swipeable
infinite
>
<q-tab-panel name="one">...</q-tab-panel>
<q-tab-panel name="two">...</q-tab-panel>
</q-tab-panels>Details worth knowing:
If you hit a case where the built-in gesture isn't enough (e.g., you need swipe thresholds, or swipe only on part of the panel), the escape hatch is |
0 replies
Answer selected by
CNOCTAVE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good news: this already exists — it's the
swipeableprop onQTabPanels(API, which even ships a "Swipeable and infinite" usage example):Details worth knowing:
swipeablegoes on the container (q-tab-panels), not on individualq-tab-panels — the swipe moves between panels using the container's model.animatedfor transitions, andinfiniteif you want wrapping from the last panel back to the first.verticalflips both the default transitions and the swipe axis to vertical.