##// END OF EJS Templates
Renamed widget js files since they contain views too now.
Renamed widget js files since they contain views too now.

File last commit:

r14254:6663c470
r14254:6663c470
Show More
container.js
18 lines | 653 B | application/javascript | JavascriptLexer
require(["notebook/js/widget"], function () {
var ContainerModel = IPython.WidgetModel.extend({});
IPython.notebook.widget_manager.register_widget_model('container_widget', ContainerModel);
var ContainerView = IPython.WidgetView.extend({
render : function(){
this.$el.html('');
this.$container = $('<div />')
.addClass('container')
.addClass(this.model.comm.comm_id);
this.$el.append(this.$container);
},
update : function(){},
});
IPython.notebook.widget_manager.register_widget_view('ContainerView', ContainerView);
});