Browse Source

docs/network.html: fix syntax error in various examples using 'options' variable.

- substituted ':' in "var options: {" for a syntactically correct '='.
v3_develop
Chris Dituri 10 years ago
parent
commit
d338591abd
1 changed files with 10 additions and 10 deletions
  1. +10
    -10
      docs/network.html

+ 10
- 10
docs/network.html View File

@ -1529,7 +1529,7 @@ var options = {
} }
} }
// OR to just load the module with default values: // OR to just load the module with default values:
var options: {
var options = {
dataManipulation: true dataManipulation: true
} }
</pre> </pre>
@ -1567,7 +1567,7 @@ var options: {
</p> </p>
<pre class="prettyprint"> <pre class="prettyprint">
// If a variable is not supplied, the default value is used. // If a variable is not supplied, the default value is used.
var options: {
var options = {
dataManipulation: true, dataManipulation: true,
onAdd: function(data,callback) { onAdd: function(data,callback) {
/** data = {id: random unique id, /** data = {id: random unique id,
@ -1677,7 +1677,7 @@ var options = {
} }
} }
// OR to just load the module with default values: // OR to just load the module with default values:
var options: {
var options = {
clustering: true clustering: true
} }
</pre> </pre>
@ -1827,7 +1827,7 @@ var options: {
<pre class="prettyprint"> <pre class="prettyprint">
// use of navigation controls // use of navigation controls
var options: {
var options = {
navigation: true navigation: true
} }
@ -1841,12 +1841,12 @@ var options: {
<pre class="prettyprint"> <pre class="prettyprint">
// simple use of keyboard controls // simple use of keyboard controls
var options: {
var options = {
keyboard: true keyboard: true
} }
// advanced configuration for keyboard controls // advanced configuration for keyboard controls
var options: {
var options = {
keyboard: { keyboard: {
speed: { speed: {
x: 10, x: 10,
@ -1897,12 +1897,12 @@ var options: {
<pre class="prettyprint"> <pre class="prettyprint">
// simple use of the hierarchical layout // simple use of the hierarchical layout
var options: {
var options = {
hierarchicalLayout: true hierarchicalLayout: true
} }
// advanced configuration for hierarchical layout // advanced configuration for hierarchical layout
var options: {
var options = {
hierarchicalLayout: { hierarchicalLayout: {
enabled:false, enabled:false,
levelSeparation: 150, levelSeparation: 150,
@ -1912,7 +1912,7 @@ var options: {
} }
} }
// partial configuration automatically sets enabled to true // partial configuration automatically sets enabled to true
var options: {
var options = {
hierarchicalLayout: { hierarchicalLayout: {
nodeSpacing: 100, nodeSpacing: 100,
direction: "UD" direction: "UD"
@ -2062,7 +2062,7 @@ To load a locale into the Timeline not supported by default, one can add a new l
<pre class="prettyprint"> <pre class="prettyprint">
// tooltip behaviour and style options // tooltip behaviour and style options
var options: {
var options = {
tooltip: { tooltip: {
delay: 300, delay: 300,
fontColor: "black", fontColor: "black",

Loading…
Cancel
Save