diff --git a/cytoscape-toolbar.js b/cytoscape-toolbar.js index 6822d76..272db6e 100644 --- a/cytoscape-toolbar.js +++ b/cytoscape-toolbar.js @@ -110,6 +110,7 @@ function pan(core, direction, factors) { (function ($) { var defaults = { cyContainer: 'cy', // id being used for cytoscape core instance + toolbarContainer: 'body', tools: [ // an array of tools to list in the toolbar [ { @@ -378,7 +379,7 @@ function pan(core, direction, factors) { .css(cssOptions) data.$container = $toolbar; - $toolbar.appendTo('body'); + $toolbar.appendTo(options.toolbarContainer); $.each(options.tools, function (toolListIndex, toolList) { var $toolListWrapper = $('
') diff --git a/demos/tabs.html b/demos/tabs.html new file mode 100644 index 0000000..a583cf0 --- /dev/null +++ b/demos/tabs.html @@ -0,0 +1,220 @@ + + + +