vuepress-plugin-tabs icon indicating copy to clipboard operation
vuepress-plugin-tabs copied to clipboard

Possible to keep multiple tabs in sync?

Open GijsGoudzwaard opened this issue 5 years ago • 3 comments

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?

GijsGoudzwaard avatar Sep 03 '19 12:09 GijsGoudzwaard

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

Kaifuny avatar Oct 10 '19 02:10 Kaifuny

Yes

GijsGoudzwaard avatar Oct 10 '19 05:10 GijsGoudzwaard

+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

gaelL avatar Oct 16 '20 13:10 gaelL