[WIP] Arrays of UI elements, type maintenance #71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I wanted to be able to set a table of sliders and get their values out as a collection, so I started rewriting src/Builtins.jl a bit.
But I needed some specific type functionality for that, so I started working on the types for the UI elements. Both adding an abstract supertype, making most of them parametric and adjusting the concreteness of parameters and arguments.
Turns out the functionality I originally wanted would behoove me to figure out how Pluto.jl deals with binding (and specifically javascript, so that's a project for the future). But the table printing turned out pretty sweet.
The Dict based types (Select, MultiSelect and Radio) are currently broken, both for some so far unknown reason, but also due to Dicts being unordered. I'll look into what to do about that at a later time.
(Don't merge, obviously, but I'm open for comments and suggestions)