Is it possible to create a box container widget with this? #580
Replies: 2 comments
-
Correct. Currently we've avoided adding additional APIs for creating nested views and child views. It is possible to use anywidgets within ipywidgets layouts as well as Panel layout containers by making this restriction. I'd be open to brainstorming some APIs to suit such use cases, but I'd like to avoid tying the APIs so closely to backbone model/view-based approaches. |
Beta Was this translation helpful? Give feedback.
-
For ipyreact this was a bit more trival to implement, because React supports this out of the box. Maybe can be an inspiration for anywidget how to handle that, I have a demo for this at: We spend quite some time to get this right, for non-dom react children as well, e.g. threejs-fiber: |
Beta Was this translation helpful? Give feedback.
-
We tried creating a box container with this, a box that contains other widgets. It seems it's not possible by design?
Using plain old ipywidgets approach, the frontend Box view code would call the
create_child_view
method to create sub widgets. But there is no such thing available from the anywidgets API as widget authors don't have access to the view implementation, or am I missing something?Beta Was this translation helpful? Give feedback.
All reactions