You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I would like to create a Widget using ReactiveHTML. I would like to be able to use it in exactly the same way as Panel Widgets.
For example I would expect to be able to use .from_param method which I use very often. But I can't as a ReactiveHTML element does not have a .from_param method. If I try to copy the .from_param code from the Widget class it does not work either as a lot of the Panel code makes tests like isinstance(widget, Widget) and my component does not inherit from Widget as I don't know if I can just do this.
The text was updated successfully, but these errors were encountered:
MarcSkovMadsen
changed the title
ReactiveHTML: Make it easy to create Panel widgets via ReactiveHTML
ReactiveHTML: Make it easy to create widgets that work as Panels widgets
Oct 5, 2023
Sometimes I would like to create a
Widget
usingReactiveHTML
. I would like to be able to use it in exactly the same way as PanelWidgets
.For example I would expect to be able to use
.from_param
method which I use very often. But I can't as aReactiveHTML
element does not have a.from_param
method. If I try to copy the.from_param
code from theWidget
class it does not work either as a lot of the Panel code makes tests likeisinstance(widget, Widget)
and my component does not inherit fromWidget
as I don't know if I can just do this.The text was updated successfully, but these errors were encountered: