I’m trying to make a dashboard that has different sections. Right now, I have every ‘section’ started with a head, so I can use the Folding feature, but what I would like to have is a line of buttons/links where each button shows one section of the note and hides the others. Is there a way to do this?
I’ve been looking at the buttons plugin, but there doesn’t seem to be a way to use it for this usecase, or does it?
You could do this very simply without any plugins by just having a heading navigation line under each heading:
# Heading 1
[[#Heading 1]] | [[#Heading 2]]
Some text.
# Heading 2
[[#Heading 1]] | [[#Heading 2]]
Some text.
It won’t hide your other text - to do that you could use the Buttons plugin and some Javascript to show/hide the sections. You can reference the code from this YAML show/hide script for a rough guide on how to do that: