Kaifuny / vuepress-plugin-tabs

Vuepress plugin - Tabs Container for Vuepress
https://superbiger.github.io/vuepress-plugin-tabs/
Other
34 stars 14 forks source link

Possible to keep multiple tabs in sync? #4

Open GijsGoudzwaard opened 4 years ago

GijsGoudzwaard commented 4 years ago

So for my documentation site I have something like this:

:::: tabs
::: tab PHP
 // Some code
:::
::: tab Javascript
 // Some code
:::
::::

And then on another page I have the same setup. Is it possible that when I click on, for example, javascript that that decision would retain on each page? So that on each page the javascript tab is active?

Kaifuny commented 4 years ago

@GijsGoudzwaard, Do you mean that if have the same setup in each page, tabs will be change on each page at same?

GijsGoudzwaard commented 4 years ago

Yes

gaelL commented 3 years ago

+1 I have exactly the same usecase.

It could be great for example to store in the local storage the latest selected tab. And use this value as default selected/selected tab