JuliaPluto / PlutoUI.jl

https://featured.plutojl.org/basic/plutoui.jl
The Unlicense
299 stars 54 forks source link

Add `combine` #163

Closed fonsp closed 2 years ago

fonsp commented 2 years ago

https://htmlview.glitch.me/?https://gist.github.com/fonsp/056877529633cdbc4e91fcabdb056d3f#file-combine-jl-html

Schermopname 2021-12-10 om 18 21 56

github-actions[bot] commented 2 years ago

Try this Pull Request!

Open Julia and type:

  julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/JuliaPluto/PlutoUI.jl", rev="combine")
julia> using PlutoUI

Or run this code in your browser: Run with binder

Pangoraw commented 2 years ago

Very cool! What do you think about transforming into a tuple instead of a vector and also making a named tuple variant ?

fonsp commented 2 years ago

Awesome idea @Pangoraw !

fonsp commented 2 years ago

@disberd We can make a more high-level component using this:

@bind parameters @parameter_table begin
    x 1:50 "Horizontal position"
    y 1:10 "Vertical position"
    ...
end
disberd commented 2 years ago

Cool!