V 5.1.4 (W10)
I can’t take control of a tab with a button
Also tried the “controlled by” property of the tab:
Nothing happens
Edit: found this on console:
V 5.1.4 (W10)
I can’t take control of a tab with a button
Also tried the “controlled by” property of the tab:
Nothing happens
Edit: found this on console:
Hi people.
News on this? I’m doing something wrong here ?
You can use a variable to control tabs with buttons.
Eg with a variable named ‘tab_selected’, add
dmx-class:active="tab_selected.value == 'profile'"
on both the tabs (link with ‘nav-link’ class) and the panels (divs with the ‘tab-pane’ class).
Then set the variable with the buttons, eg
dmx-on:click="tab_selected.setValue('profile')"
I think some of the Action Toggle options for buttons have never worked - eg the Tab and Dropdown options don’t work. It would be good if they could all be fixed if this feature is looked at by @patrick.
Place the button in a div/container with role="tablist"
and on the button add role="tab"
. Tabs can only be controlled from within a tablist or nav.