-
-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable me to create Viewer widgets #7030
Comments
Just skimmed this issue; wondering whether you can inherit from |
Its a good question. If that is possible it should be documented. I don't believe its possible though. The |
That is great. This should be documented. Why do we have both the Viewer and the CompositeWidget @philippjfr ? |
I've many, many times been wanting to create custom widgets using the
Viewer
. But I've experienced just as many times its not possible.For example now to help P720 in https://discourse.holoviz.org/t/panel-chat-interface/7505 I would like to create a custom widget and use that for the
ChatInterface
. But it cannot work as theViewer
cannot be made to work like aWidget
.Minimum, Reproducible Example
It works fine until I click send. Then I get
In this case the problem is that when a
Viewer
is put in a row its replaced with its__panel__()
. Thus then the assumptions about how to retrieve theChatInterface.active_widget
property breaks down. In this case you could probable "fix" the active_widget implementation. But in my experience its a problem all over the place that its not possible to get aViewer
to behave like a widget.As a bonus its also hard and not documented how to get a
Viewer
to beLayoutable
. That is always another friction. The ChatInterface also assumes that about the input widgets. It assumes there is asizing_mode
on the widget.The text was updated successfully, but these errors were encountered: