##// END OF EJS Templates
Made registered model name look like other model names
Jonathan Frederic -
Show More
@@ -1,6 +1,6 b''
1 require(["notebook/js/widget"], function(){
1 require(["notebook/js/widget"], function(){
2 var ContainerModel = IPython.WidgetModel.extend({});
2 var ContainerModel = IPython.WidgetModel.extend({});
3 IPython.notebook.widget_manager.register_widget_model('container_widget', ContainerModel);
3 IPython.notebook.widget_manager.register_widget_model('ContainerWidgetModel', ContainerModel);
4
4
5 var ContainerView = IPython.WidgetView.extend({
5 var ContainerView = IPython.WidgetView.extend({
6
6
@@ -2,7 +2,7 b' from widget import Widget'
2 from IPython.utils.traitlets import Unicode, Bool
2 from IPython.utils.traitlets import Unicode, Bool
3
3
4 class ContainerWidget(Widget):
4 class ContainerWidget(Widget):
5 target_name = Unicode('container_widget')
5 target_name = Unicode('ContainerWidgetModel')
6 default_view_name = Unicode('ContainerView')
6 default_view_name = Unicode('ContainerView')
7 _keys = ['_vbox', '_hbox', '_start', '_end', '_center']
7 _keys = ['_vbox', '_hbox', '_start', '_end', '_center']
8 _trait_changing = False
8 _trait_changing = False
General Comments 0
You need to be logged in to leave comments. Login now