Skip to content

Commit b0b888a

Browse files
committed
Add example
1 parent 715bc18 commit b0b888a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,20 +175,26 @@ See also: https://www.mediawiki.org/wiki/Manual:Namespace#Built-in_namespaces
175175

176176
#### Options parameter
177177

178+
Array of [vis.js options](https://visjs.github.io/vis-network/docs/network/#options)
179+
178180
```
179181
{{#network:Page1 | Page2 | Page3
180182
| options=
181183
{
182184
"autoResize": true,
183185
"width": "50%",
184186
"nodes": {
185-
"borderWidth" => 1,
186-
"shape": "box"
187+
"color": "lightblue",
188+
"shape": "box",
189+
"borderWidth": 3,
190+
"font": { "color": "red", "size": 17 }
187191
}
188192
}
189193
}}
190194
```
191195

196+
Wrong: `"font.color": "red"`, right: `"font": { "color": "red" }`, also right: `"font": "14 px arial red"`
197+
192198
#### Using templates
193199

194200
```

0 commit comments

Comments
 (0)