##// END OF EJS Templates
Added sync=True to all view name attrs
Jonathan Frederic -
Show More
@@ -21,7 +21,7 b' from IPython.utils.traitlets import Unicode, Bool, List'
21 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
22 class BoolWidget(DOMWidget):
22 class BoolWidget(DOMWidget):
23 target_name = Unicode('BoolWidgetModel')
23 target_name = Unicode('BoolWidgetModel')
24 view_name = Unicode('CheckboxView')
24 view_name = Unicode('CheckboxView', sync=True)
25
25
26 # Model Keys
26 # Model Keys
27 value = Bool(False, help="Bool value", sync=True)
27 value = Bool(False, help="Bool value", sync=True)
@@ -25,7 +25,7 b' from IPython.utils.traitlets import Unicode, Bool, Int'
25 #-----------------------------------------------------------------------------
25 #-----------------------------------------------------------------------------
26 class ButtonWidget(DOMWidget):
26 class ButtonWidget(DOMWidget):
27 target_name = Unicode('ButtonWidgetModel')
27 target_name = Unicode('ButtonWidgetModel')
28 view_name = Unicode('ButtonView')
28 view_name = Unicode('ButtonView', sync=True)
29
29
30 # Keys
30 # Keys
31 description = Unicode('', help="Description of the button (label).", sync=True)
31 description = Unicode('', help="Description of the button (label).", sync=True)
@@ -21,7 +21,7 b' from IPython.utils.traitlets import Unicode, Bool, List, Instance'
21 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
22 class ContainerWidget(DOMWidget):
22 class ContainerWidget(DOMWidget):
23 target_name = Unicode('ContainerWidgetModel')
23 target_name = Unicode('ContainerWidgetModel')
24 view_name = Unicode('ContainerView')
24 view_name = Unicode('ContainerView', sync=True)
25
25
26 # Keys, all private and managed by helper methods. Flexible box model
26 # Keys, all private and managed by helper methods. Flexible box model
27 # classes...
27 # classes...
@@ -21,7 +21,7 b' from IPython.utils.traitlets import Unicode, Float, Bool, List'
21 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
22 class FloatWidget(DOMWidget):
22 class FloatWidget(DOMWidget):
23 target_name = Unicode('FloatWidgetModel')
23 target_name = Unicode('FloatWidgetModel')
24 view_name = Unicode('FloatTextView')
24 view_name = Unicode('FloatTextView', sync=True)
25
25
26 # Keys
26 # Keys
27 value = Float(0.0, help="Float value", sync=True)
27 value = Float(0.0, help="Float value", sync=True)
@@ -21,7 +21,7 b' from IPython.utils.traitlets import Unicode, Float, Bool, List'
21 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
22 class FloatRangeWidget(DOMWidget):
22 class FloatRangeWidget(DOMWidget):
23 target_name = Unicode('FloatRangeWidgetModel')
23 target_name = Unicode('FloatRangeWidgetModel')
24 view_name = Unicode('FloatSliderView')
24 view_name = Unicode('FloatSliderView', sync=True)
25
25
26 # Keys
26 # Keys
27 value = Float(0.0, help="Float value", sync=True)
27 value = Float(0.0, help="Float value", sync=True)
@@ -24,7 +24,7 b' from IPython.utils.traitlets import Unicode, Bytes'
24 #-----------------------------------------------------------------------------
24 #-----------------------------------------------------------------------------
25 class ImageWidget(DOMWidget):
25 class ImageWidget(DOMWidget):
26 target_name = Unicode('ImageWidgetModel')
26 target_name = Unicode('ImageWidgetModel')
27 view_name = Unicode('ImageView')
27 view_name = Unicode('ImageView', sync=True)
28
28
29 # Define the custom state properties to sync with the front-end
29 # Define the custom state properties to sync with the front-end
30 format = Unicode('png', sync=True)
30 format = Unicode('png', sync=True)
@@ -21,7 +21,7 b' from IPython.utils.traitlets import Unicode, Int, Bool, List'
21 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
22 class IntWidget(DOMWidget):
22 class IntWidget(DOMWidget):
23 target_name = Unicode('IntWidgetModel')
23 target_name = Unicode('IntWidgetModel')
24 view_name = Unicode('IntTextView')
24 view_name = Unicode('IntTextView', sync=True)
25
25
26 # Keys
26 # Keys
27 value = Int(0, help="Int value", sync=True)
27 value = Int(0, help="Int value", sync=True)
@@ -21,7 +21,7 b' from IPython.utils.traitlets import Unicode, Int, Bool, List'
21 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
22 class IntRangeWidget(DOMWidget):
22 class IntRangeWidget(DOMWidget):
23 target_name = Unicode('IntRangeWidgetModel')
23 target_name = Unicode('IntRangeWidgetModel')
24 view_name = Unicode('IntSliderView')
24 view_name = Unicode('IntSliderView', sync=True)
25
25
26 # Keys
26 # Keys
27 value = Int(0, help="Int value", sync=True)
27 value = Int(0, help="Int value", sync=True)
@@ -21,7 +21,7 b' from IPython.utils.traitlets import Unicode, List, Bool'
21 #-----------------------------------------------------------------------------
21 #-----------------------------------------------------------------------------
22 class SelectionWidget(DOMWidget):
22 class SelectionWidget(DOMWidget):
23 target_name = Unicode('SelectionWidgetModel')
23 target_name = Unicode('SelectionWidgetModel')
24 view_name = Unicode('DropdownView')
24 view_name = Unicode('DropdownView', sync=True)
25
25
26 # Keys
26 # Keys
27 value = Unicode(help="Selected value", sync=True) # TODO: Any support
27 value = Unicode(help="Selected value", sync=True) # TODO: Any support
@@ -22,7 +22,7 b' from IPython.utils.traitlets import Unicode, Dict, Int, List, Instance'
22 #-----------------------------------------------------------------------------
22 #-----------------------------------------------------------------------------
23 class SelectionContainerWidget(DOMWidget):
23 class SelectionContainerWidget(DOMWidget):
24 target_name = Unicode('SelectionContainerWidgetModel')
24 target_name = Unicode('SelectionContainerWidgetModel')
25 view_name = Unicode('TabView')
25 view_name = Unicode('TabView', sync=True)
26
26
27 # Keys
27 # Keys
28 _titles = Dict(help="Titles of the pages", sync=True)
28 _titles = Dict(help="Titles of the pages", sync=True)
@@ -24,7 +24,7 b' from IPython.utils.traitlets import Unicode, Bool, List, Int'
24 #-----------------------------------------------------------------------------
24 #-----------------------------------------------------------------------------
25 class StringWidget(DOMWidget):
25 class StringWidget(DOMWidget):
26 target_name = Unicode('StringWidgetModel')
26 target_name = Unicode('StringWidgetModel')
27 view_name = Unicode('TextBoxView')
27 view_name = Unicode('TextBoxView', sync=True)
28
28
29 # Keys
29 # Keys
30 value = Unicode(help="String value", sync=True)
30 value = Unicode(help="String value", sync=True)
General Comments 0
You need to be logged in to leave comments. Login now