Hey all, I’m looking to create a bidirectional link between arbitrary widget attributes(either value or options) and parameter. This feels as if it should be very simple and straightforward but isn’t.
A unidirectional link is easily established with by instantiating the widget with the parameter in the value field. However, in this case, when you change the value of the widget from the actual widget, the parameter value does not change.
Alternatively if you have a lot of params, pn.Param, but I like from_param more because specifying widgets with their kwargs feels clunky in pn.Param, Param — Panel v1.4.4
That’s a great solution, thanks! Must’ve missed that in the docs.
Is it possible to switch out that parameter with another? or would I need to reinstantiate the widget?
I mean replacing the parameter plugged into the from_param() method with another after the widget has been already instantiated while keeping a bidirectional link.
It seems that I’ll have to update the GUI by instantiating a new widget using from_param() again.