Browse Source

Fixes documentation for group option of node.

webworkersNetwork
vukk 9 years ago
parent
commit
c0a0a2a085
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      docs/network/nodes.html

+ 5
- 3
docs/network/nodes.html View File

@ -93,7 +93,7 @@
<h3>Options</h3> <h3>Options</h3>
<p>The options for the nodes have to be contained in an object titled 'nodes'. All of these options can be supplied per node as well. Obviously, 'id' should not be defined globally but per node. Options defined <p>The options for the nodes have to be contained in an object titled 'nodes'. All of these options can be supplied per node as well. Obviously, 'id' should not be defined globally but per node. Options defined
in the global nodes object, are applied to all nodes. If a node has options of its own, those will be used instead of the global options.</p> in the global nodes object, are applied to all nodes. If a node has options of its own, those will be used instead of the global options.</p>
<p><b><i>When you have given a node an option, you will override the global option for that property. If you then set that option to <code>null</code>,
<p><b><i>When you have given a node an option, you will override the global option for that property, and also the group option for that property if the node is in a group. If you then set that option to <code>null</code>,
it will revert back to the default value.</i></b> it will revert back to the default value.</i></b>
</p> </p>
<p>Click on the full options or shorthand options to show how these options are supposed to be used.</p> <p>Click on the full options or shorthand options to show how these options are supposed to be used.</p>
@ -374,7 +374,9 @@ network.setOptions(options);
<td>group</td> <td>group</td>
<td>String</td> <td>String</td>
<td><code>undefined</code></td> <td><code>undefined</code></td>
<td>When not <code>undefined</code>, the</td>
<td>When not <code>undefined</code>, the node will belong to the defined group. Styling information of
that group will apply to this node. Node specific styling overrides group styling.
</td>
</tr> </tr>
<tr> <tr>
<td>hidden</td> <td>hidden</td>
@ -704,4 +706,4 @@ mySize = minSize + diff * scale;
<script src="../js/tipuesearch.config.js"></script> <script src="../js/tipuesearch.config.js"></script>
<script src="../js/tipuesearch.js"></script> <script src="../js/tipuesearch.js"></script>
<!-- controller --> <!-- controller -->
<script src="../js/main.js"></script>
<script src="../js/main.js"></script>

Loading…
Cancel
Save