I need make a relatively custom and complex input group - with sliders, checkbox, etc - with some divs updated inside the input group. Using viewof enables to show the input group and collect its state.
Now I need set this input group state with some preset value with a button. In the notebook below I have a working solution but am really not sure this the recommended way to do it.
Utimately the objective would be composing such custom elements recursively.
So I would be grateful for directions/corrections.
I carried on exploring my initial path as the main objective of separating state in an EventTarget derived object is mostly useful for very flexible and fine grain control.
However in my use case, I am mostly concerned with finding a simple way of composing/nesting viewof-able components in custom trees with a view to building dashboards out of sub-dashboard
Here is a “proposal”. Again I’m very interested in feedback on the code and the text - especially if you spot errors !