diff --git a/glue_jupyter/widgets/disconnect.py b/glue_jupyter/widgets/disconnect.py new file mode 100644 index 00000000..6c7cbb2e --- /dev/null +++ b/glue_jupyter/widgets/disconnect.py @@ -0,0 +1,40 @@ +import ipyvue +import ipyvuetify as v +import traitlets +import ipywidgets as widgets +from traitlets import Unicode, Dict, List +import ipywidgets as w + +class Disconnect(v.VuetifyTemplate): + main = traitlets.Instance(widgets.Widget).tag(sync=True, **widgets.widget_serialization) + broken = traitlets.Instance(widgets.Widget).tag(sync=True, **widgets.widget_serialization) + connected = traitlets.Bool(True).tag(sync=True) + template = Unicode(""" + + """).tag(sync=True) + + # we need to put our code in a component, otherwise inject: ['viewCtx'] does not work + components = Dict({ + 'view-context-wrapper': """ + + + """ + }).tag(sync=True)