mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
s/TextareaView/TextAreaView & s/TextboxView/TextBoxView
This commit is contained in:
parent
dfd4e3269e
commit
9b891d4018
@ -21,7 +21,7 @@ require(["notebook/js/widget"], function(){
|
|||||||
|
|
||||||
IPython.notebook.widget_manager.register_widget_view('LabelView', LabelView);
|
IPython.notebook.widget_manager.register_widget_view('LabelView', LabelView);
|
||||||
|
|
||||||
var TextareaView = IPython.WidgetView.extend({
|
var TextAreaView = IPython.WidgetView.extend({
|
||||||
|
|
||||||
// Called when view is rendered.
|
// Called when view is rendered.
|
||||||
render : function(){
|
render : function(){
|
||||||
@ -55,9 +55,9 @@ require(["notebook/js/widget"], function(){
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
IPython.notebook.widget_manager.register_widget_view('TextareaView', TextareaView);
|
IPython.notebook.widget_manager.register_widget_view('TextAreaView', TextAreaView);
|
||||||
|
|
||||||
var TextboxView = IPython.WidgetView.extend({
|
var TextBoxView = IPython.WidgetView.extend({
|
||||||
|
|
||||||
// Called when view is rendered.
|
// Called when view is rendered.
|
||||||
render : function(){
|
render : function(){
|
||||||
@ -91,5 +91,5 @@ require(["notebook/js/widget"], function(){
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
IPython.notebook.widget_manager.register_widget_view('TextboxView', TextboxView);
|
IPython.notebook.widget_manager.register_widget_view('TextBoxView', TextBoxView);
|
||||||
});
|
});
|
||||||
|
@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, Bool, List
|
|||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
class StringWidget(Widget):
|
class StringWidget(Widget):
|
||||||
target_name = Unicode('StringWidgetModel')
|
target_name = Unicode('StringWidgetModel')
|
||||||
default_view_name = Unicode('TextboxView')
|
default_view_name = Unicode('TextBoxView')
|
||||||
|
|
||||||
# Keys
|
# Keys
|
||||||
_keys = ['value', 'disabled']
|
_keys = ['value', 'disabled']
|
||||||
|
Loading…
Reference in New Issue
Block a user