Open MarcSkovMadsen opened 2 years ago
I definitely plan on doing this at some point. I already have the fields
parameter that lets you choose which fields to include but have not yet added a widgets
option. I would like the implementation to play nice with the dispatch system so probably would have to define a new class called eg "WidgetSpec" that is registered in the dispatch system to a widget builder that returns the correct widget based on the spec.
A Pydantic model is very similar to a
param.Parameterized
class. In Panel you can turn aParameterized
class into a component usingpn.Param
.pn.Param
enables you toIt would be powerful if the
Pydantic
pane worked in a similar fashion.