Added sync=True to all view name attrs

This commit is contained in:
Jonathan Frederic 2014-01-14 15:21:35 +00:00
parent cfe8a07337
commit b16171ac76
9 changed files with 9 additions and 9 deletions

View File

@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, Bool, List
#-----------------------------------------------------------------------------
class BoolWidget(DOMWidget):
target_name = Unicode('BoolWidgetModel')
view_name = Unicode('CheckboxView')
view_name = Unicode('CheckboxView', sync=True)
# Model Keys
value = Bool(False, help="Bool value", sync=True)

View File

@ -25,7 +25,7 @@ from IPython.utils.traitlets import Unicode, Bool, Int
#-----------------------------------------------------------------------------
class ButtonWidget(DOMWidget):
target_name = Unicode('ButtonWidgetModel')
view_name = Unicode('ButtonView')
view_name = Unicode('ButtonView', sync=True)
# Keys
description = Unicode('', help="Description of the button (label).", sync=True)

View File

@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, Bool, List, Instance
#-----------------------------------------------------------------------------
class ContainerWidget(DOMWidget):
target_name = Unicode('ContainerWidgetModel')
view_name = Unicode('ContainerView')
view_name = Unicode('ContainerView', sync=True)
# Keys, all private and managed by helper methods. Flexible box model
# classes...

View File

@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, Float, Bool, List
#-----------------------------------------------------------------------------
class FloatWidget(DOMWidget):
target_name = Unicode('FloatWidgetModel')
view_name = Unicode('FloatTextView')
view_name = Unicode('FloatTextView', sync=True)
# Keys
value = Float(0.0, help="Float value", sync=True)

View File

@ -24,7 +24,7 @@ from IPython.utils.traitlets import Unicode, Bytes
#-----------------------------------------------------------------------------
class ImageWidget(DOMWidget):
target_name = Unicode('ImageWidgetModel')
view_name = Unicode('ImageView')
view_name = Unicode('ImageView', sync=True)
# Define the custom state properties to sync with the front-end
format = Unicode('png', sync=True)

View File

@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, Int, Bool, List
#-----------------------------------------------------------------------------
class IntWidget(DOMWidget):
target_name = Unicode('IntWidgetModel')
view_name = Unicode('IntTextView')
view_name = Unicode('IntTextView', sync=True)
# Keys
value = Int(0, help="Int value", sync=True)

View File

@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, List, Bool
#-----------------------------------------------------------------------------
class SelectionWidget(DOMWidget):
target_name = Unicode('SelectionWidgetModel')
view_name = Unicode('DropdownView')
view_name = Unicode('DropdownView', sync=True)
# Keys
value = Unicode(help="Selected value", sync=True) # TODO: Any support

View File

@ -22,7 +22,7 @@ from IPython.utils.traitlets import Unicode, Dict, Int, List, Instance
#-----------------------------------------------------------------------------
class SelectionContainerWidget(DOMWidget):
target_name = Unicode('SelectionContainerWidgetModel')
view_name = Unicode('TabView')
view_name = Unicode('TabView', sync=True)
# Keys
_titles = Dict(help="Titles of the pages", sync=True)

View File

@ -24,7 +24,7 @@ from IPython.utils.traitlets import Unicode, Bool, List, Int
#-----------------------------------------------------------------------------
class StringWidget(DOMWidget):
target_name = Unicode('StringWidgetModel')
view_name = Unicode('TextBoxView')
view_name = Unicode('TextBoxView', sync=True)
# Keys
value = Unicode(help="String value", sync=True)