##// END OF EJS Templates
Change accordion to use a children attribute
Jason Grout -
Show More
@@ -26,6 +26,10 b' define(["notebook/js/widgets/base"], function(widget_manager){'
26 26 .attr('id', guid)
27 27 .addClass('accordion');
28 28 this.containers = [];
29 for (var i in children) {
30 this.add_child_view(this.child_view(children[i]))
31 }
32
29 33 },
30 34 update: function() {
31 35 // Set tab titles
@@ -57,7 +61,7 b' define(["notebook/js/widgets/base"], function(widget_manager){'
57 61 return IPython.WidgetView.prototype.update.call(this);
58 62 },
59 63
60 add_child_view: function(attr, view) {
64 add_child_view: function(view) {
61 65
62 66 var index = this.containers.length;
63 67 var uuid = IPython.utils.uuid();
General Comments 0
You need to be logged in to leave comments. Login now