vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
6.2 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <meta name="description" content="">
  9. <meta name="author" content="">
  10. <link rel="icon" HREF="favicon.ico">
  11. <title>vis.js - A dynamic, browser based visualization library.</title>
  12. <!-- Bootstrap core CSS -->
  13. <link href="../css/bootstrap.css" rel="stylesheet">
  14. <link href="../css/newdocs.css" rel="stylesheet">
  15. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  16. <!--[if lt IE 9]>
  17. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  18. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  19. <![endif]-->
  20. <link href="../css/prettify.css" type="text/css" rel="stylesheet"/>
  21. <script type="text/javascript" src="../js/googleAnalytics.js"></script>
  22. <script type="text/javascript" src="../js/prettify/prettify.js"></script>
  23. <script src="../js/smooth-scroll.min.js"></script>
  24. <script language="JavaScript">
  25. smoothScroll.init();
  26. </script>
  27. <style>
  28. </style>
  29. </head>
  30. <!-- NAVBAR
  31. ================================================== -->
  32. <body onload="prettyPrint();">
  33. <div class="navbar-wrapper">
  34. <div class="container">
  35. <nav class="navbar navbar-inverse navbar-static-top" role="navigation">
  36. <div class="container">
  37. <div class="navbar-header">
  38. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
  39. aria-expanded="false" aria-controls="navbar">
  40. <span class="sr-only">Toggle navigation</span>
  41. <span class="icon-bar"></span>
  42. <span class="icon-bar"></span>
  43. <span class="icon-bar"></span>
  44. </button>
  45. <a class="navbar-brand hidden-sm" href="./index.html">vis.js</a>
  46. </div>
  47. <div id="navbar" class="navbar-collapse collapse">
  48. <ul class="nav navbar-nav">
  49. <li><a href="../index.html#modules">Modules</a></li>
  50. <li class="active"><a href="./docs/index.html" target="_blank">Documentation <img class="icon"
  51. src="../img/external-link-icons/external-link-icon-white.png"></a>
  52. </li>
  53. <li><a href="../blog.html">Blog</a></li>
  54. <li><a href="../index.html#download_install">Download</a></li>
  55. <li><a href="../showcase/index.html">Showcase</a></li>
  56. <li><a href="../index.html#contribute">Contribute</a></li>
  57. <li><a href="../featureRequests.html">Feature requests</a></li>
  58. <li><a href="../index.html#licenses">License</a></li>
  59. </ul>
  60. </div>
  61. </div>
  62. </nav>
  63. </div>
  64. </div>
  65. <a href="https://github.com/almende/vis" class="hidden-xs hidden-sm hidden-md"><img
  66. style="position: absolute; top: 0; right: 0; border: 0;"
  67. src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67"
  68. alt="Fork me on GitHub"
  69. data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
  70. <div class="container full">
  71. <h1>Network - configure</h1>
  72. <p>Handles the HTML part of the canvas.</p>
  73. <h3>Options</h3>
  74. <p>The options for the canvas have to be contained in an object titled 'canvas'.</p>
  75. <pre class="prettyprint lang-js options">
  76. var options = {
  77. configure:{
  78. filter: 'nodes, physics', // or ['nodes','physics'] or true
  79. container: document.getElementById("configDiv")
  80. }
  81. }
  82. // alternative:
  83. var options = {
  84. configure: 'nodes, physics', // or ['nodes','physics'] or true
  85. }
  86. network.setOptions(options);
  87. </pre>
  88. <p>As shown above, alternative to supplying an object, you can supply a <code>String</code>, <code>Array</code> or
  89. <code>Boolean</code>. These will do the same as the filter option described below.</p>
  90. <table class="moduleTable">
  91. <tr class="header">
  92. <td class="nameSmall">name</td>
  93. <td class="type">type</td>
  94. <td class="default">default</td>
  95. <td class="description">description</td>
  96. </tr>
  97. <tr>
  98. <td>filter</td>
  99. <td class="mid">String or Array or Boolean</td>
  100. <td class="mid"><code>true</code></td>
  101. <td>When a boolean, true gives you all options, false will not show any. If a string is supplied, any
  102. combination of the following is allowed: nodes, edges, layout, interaction, manipulation, physics,
  103. selection, renderer. Feel free to come up with a fun seperating character. Finally, when supplied an
  104. array of strings, any of the previously mentioned fields are accepted.
  105. </td>
  106. </tr>
  107. <tr>
  108. <td>container</td>
  109. <td class="mid">DOM element</td>
  110. <td class="mid"><code>undefined</code></td>
  111. <td>This allows you to put the configure list in another HTML container than below the network.</td>
  112. </tr>
  113. </table>
  114. <h3>Methods</h3>
  115. <p>The configure module has no methods.</p>
  116. <h3>Events</h3>
  117. <p>The configure module has no Events.</p>
  118. <br/>
  119. <br/>
  120. <br/>
  121. <br/>
  122. <br/>
  123. <br/>
  124. <br/>
  125. </div>
  126. <!-- Bootstrap core JavaScript
  127. ================================================== -->
  128. <!-- Placed at the end of the document so the pages load faster -->
  129. <script src="../js/jquery.min.js"></script>
  130. <script src="../js/bootstrap.min.js"></script>
  131. <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  132. <script src="../js/ie10-viewport-bug-workaround.js"></script>