PlutoUI.jl icon indicating copy to clipboard operation
PlutoUI.jl copied to clipboard

A collapsible Sidebar (similar to TableOfContents)

Open schneiderfelipe opened this issue 3 years ago • 7 comments

This adds a simple Sidebar object, much like TableOfContents (the sidebar stays to the left to avoid conflicting with the table of contents). Much of the code was based on TableOfContents.

sidebar

I was inspired by the sidebar from streamlit (an example here).

@fonsp Do you think this is a fit for PlutoUI.jl?

You see from the GIF above that there are still issues, such as 1. the sidebar not knowing the cell order (content is added to the sidebar as they are created) and 2. output on the sidebar doesn't get updated as it should. Feedback is welcome. 🙂🎈

schneiderfelipe avatar May 09 '21 00:05 schneiderfelipe

Another minor thing is that push! is implemented for Sidebar, but no data is stored in the object (the work is done on the JavaScript side). This is counter-intuitive, and I am happy to change it if someone's got a better idea.

schneiderfelipe avatar May 09 '21 00:05 schneiderfelipe

Very cool! Let's call sometime to discuss? I have some ideas :)

[email protected]

fonsp avatar May 18 '21 11:05 fonsp

@fonsp Definitely, I've sent you an e-mail. 😃

schneiderfelipe avatar May 18 '21 13:05 schneiderfelipe

Is this still a in play or has it be subsumed by other functionality? It kind of reminds me of similar sidebar functionality in MATLAB: https://www.mathworks.com/products/matlab/live-editor.html#

or something similar in Scribble (Racket's documentation DSL).

sashmit avatar Oct 24 '21 01:10 sashmit

Any development of this functionality? It would be very useful in some circumstances (my use case: it would be an input panel, always displayed, for variables used by many cells in the notebook). Thanks

dav2017 avatar Oct 17 '22 16:10 dav2017

@dav2017 @sashmit I couldn't find the bandwidth to continue with this work. It is functional, though. Feel free to use it as a starting point if you'd like!

schneiderfelipe avatar Oct 17 '22 16:10 schneiderfelipe

Thanks, @schneiderfelipe . Good news it is functional! I am not able to develop it, but I can surely use the code in my notebooks. Davide

dav2017 avatar Oct 17 '22 16:10 dav2017