mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Added sync=True to all view name attrs
This commit is contained in:
parent
cfe8a07337
commit
b16171ac76
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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...
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user