How can I get a sidebar TOC that can hide itself

Hello RS community,
I am trying to find a way to get the TOC of my rnotebook as a left sidebar that could retract itself.
Something like this: https://www.w3schools.com/w3css/w3css_sidebar.asp
Is it possible to do ?

Many thanks

EDIT: cross posted in https://stackoverflow.com/questions/65977729/how-can-i-have-a-retractable-table-of-content-in-rmarkdown-like-toc2-in-a-jup?noredirect=1#comment116654124_65977729

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.