##// END OF EJS Templates
Added sync= attr to DOMWidget
Jonathan Frederic -
Show More
@@ -330,12 +330,10 b' class Widget(LoggingConfigurable):'
330
330
331
331
332 class DOMWidget(Widget):
332 class DOMWidget(Widget):
333 visible = Bool(True, help="Whether or not the widget is visible.")
333 visible = Bool(True, help="Whether or not the widget is visible.", sync=True)
334
334
335 # Private/protected declarations
335 # Private/protected declarations
336 _css = Dict() # Internal CSS property dict
336 _css = Dict(sync=True) # Internal CSS property dict
337
338 keys = ['visible', '_css'] + Widget.keys # TODO
339
337
340 def get_css(self, key, selector=""):
338 def get_css(self, key, selector=""):
341 """Get a CSS property of the widget.
339 """Get a CSS property of the widget.
@@ -355,7 +353,6 b' class DOMWidget(Widget):'
355 else:
353 else:
356 return None
354 return None
357
355
358
359 def set_css(self, *args, **kwargs):
356 def set_css(self, *args, **kwargs):
360 """Set one or more CSS properties of the widget.
357 """Set one or more CSS properties of the widget.
361
358
General Comments 0
You need to be logged in to leave comments. Login now