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