ui
- class trame_server.ui.VirtualNodeManager(server, vn_constructor=None)
VirtualNodeManager acts as a container for VirtualNode
It allows widgets to be passed around that are not yet defined, and can be defined or re-defined later. For example:
>>> with layout: ... ui.hello_widget(layout) # widget is currently undefined >>> with ui.hello_widget: ... html.Div("Hello")
- set_vn_constructor(constructor)
Should not be called by user
- clear_layouts()
Remove any reference to previously registered layouts across all VirutalNodes.
- flush_content()
Push all VirtualNode contents to registered layouts
- clear()
Clear all VirtualNode contents