flowbite icon indicating copy to clipboard operation
flowbite copied to clipboard

Interactive Tabs: Save last viewed tab in localStorage -> enable with data-tabs-save

Open cainytheslave opened this issue 3 years ago • 1 comments

Updated both the docs tabs.md as well as the component tabs.js.

It is now possible to save the last open tab by adding data-tabs-save to the toggle element. No value needed as this is a boolean.

Exact functionality described in commit of tabs.js. ae1fc7d3f2f9dd26f8a2e27cdc2bcf7414e37652

cainytheslave avatar Dec 21 '21 17:12 cainytheslave

Hey @cainytheslave,

Thanks for the PR. I'll take a look at it today!

zoltanszogyenyi avatar Dec 22 '21 08:12 zoltanszogyenyi