-
-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2D cell layout #448
Comments
@shashi You had some ideas about this, right? |
Yeah my idea was to have a So you can have a cell that is like
And you'd get something like |
Why And what about |
Just to add this idea to have a more generic cell layout: it might be interesting to have floating cells |
Related: #528 |
@fonsp so if you support showing Pluto custom elements inside HTML displays and we make a HTML writing library or hack Hyperscript to use that, then we don't need a special cell layout, is that correct? |
Oh btw, with that kind of composing, we'll end up re-rendering the whole layout every time a part of it changes, so nested layout-ed cells do seem "useful". |
(For context, shashi and I discussed the idea of being able to register Julia objects to Pluto, and have them accessible inside HTML as a web componentn bond = @bind x Slider(1:10) HTML("""
<div>
$(PlutoRunner.output([1,2,x]))
$(PlutoRunner.output(bond)
</div>
""") which would render as <div>
<pluto-output object_id=876a8b68ab6 />
<pluto-output object_id=b1cbc123b12 />
</div> and it would allow you to create dashboards with arbitrarily composed UI elements and outputs.) |
Oops that's true |
I think that's why I said
Pluto would replace that with:
where |
I have an idea! How we would implement these Maybe this could also solve #515 |
Okay wouldn't that still require rendering on the Julia side? |
you mean that it would take longer for the output to show up because of the extra round trip? |
I implemented the idea from my previous comment in #1126 . You can use CSS flex and CSS grid to create cool layouts, for example https://fonsp-disorganised-mess.netlify.app/layout . @pankgeorg is working on a dashboard feature, see https://www.youtube.com/watch?v=nRmLfB-bKdc |
This is exactly what I was looking for. I love what Pluto does, and where Pluto is going. I feel like a CSS grid should just be the default way to render things. Computer screens are 2D and work well because are retinas are 2D. Grids are a natural way to interact. |
Was there something fundamentally wrong with this, like too slow, or did development resources need to be moved to other things, or something? |
Hi, Great tool.
My suggestion for a new feature is to be able to create "dashboard" style documents: cells that are stacked vertically and horizontally.
What about a '+' on each (four) sides of an existing cell.
The text was updated successfully, but these errors were encountered: