Default Active Tabs #2319
Unanswered
sylcha
asked this question in
Support from community
Replies: 2 comments
-
Hi @sylcha, try creating a method which checks your boolean variable and depending on it triggers the |
Beta Was this translation helpful? Give feedback.
0 replies
-
I used another approach which seems to work. I search for tab elements with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello every one!
I'm using TW-Elements in a project and I have question about Tabs.
I have two pages which are shown based on which one of two tabs is clicked and active. My understanding is that the tab that is displayed by default is the one that has
data-te-nav-active
asli
attribute anddata-te-tabs-active
asa
attribute.I would like to set the active page based on a boolean variable
first
: iffirst===true
, the first page will be displayed and iffirst===false
the second one will be shown.Does somebody know if there is a way to do that ?
Thanks in advance for your answer.
Sylvain
Beta Was this translation helpful? Give feedback.
All reactions