##// END OF EJS Templates
Children fire event...
zah -
Show More
@@ -27,6 +27,15 b' class ContainerWidget(DOMWidget):'
27 children = List(Instance(DOMWidget))
27 children = List(Instance(DOMWidget))
28 _children = List(Instance(DOMWidget), sync=True)
28 _children = List(Instance(DOMWidget), sync=True)
29
29
30
31 def __init__(self, **kwargs):
32 super(ContainerWidget, self).__init__(**kwargs)
33 self.on_displayed(ContainerWidget._fire_children_displayed)
34
35 def _fire_children_displayed(self):
36 for child in self._children:
37 child._handle_displayed()
38
30 def _children_changed(self, name, old, new):
39 def _children_changed(self, name, old, new):
31 """Validate children list.
40 """Validate children list.
32
41
General Comments 0
You need to be logged in to leave comments. Login now