[PLUGIN] Hidden Notes #2072
Replies: 3 comments 2 replies
-
This is wonderful, thank you for the useful addition! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Very nice, thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I could have done something wrong, but this doesn't seem to work anymore. I'm getting a "isHidden" functiono not defined error after running the script. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This plugin allows you to mark notes as "hidden" so you can toggle their visibility at the click of a button.
Setting up the plugin
Two notes are needed for this plugin to function:
The 1st note contains the CSS for this plugin.
Create a new note, set its type to
CSS
and add the#appCss
label. From there, insert this content:The 2nd note contains the logic for this plugin.
Create a new note, set its type to
JS Frontend
and add the#run=frontendStartup
label. From there, insert this content:Now you can either reload the app or execute the JS note.
Using the plugin
Any notes with the
#hidden
label will be marked as hidden notes, and by default these are:Note that hidden notes only hide notes directly under them in the note tree, if a note under a hidden note has a clone elsewhere that clone will still be rendered. If you want clones to be hidden too, add the
(inheritable)
modifier to the#hidden
attribute.By clicking the eye button
that appears in the sidebar, you can toggle between hiding hidden notes and showing them to allow editing of hidden notes.
Beta Was this translation helpful? Give feedback.
All reactions