Handles the HTML part of the canvas.
This is a list of all the methods in the public API. They are collected here from all individual modules.
name | type | default | description |
useDefaultGroups | Boolean | true |
If your nodes have groups defined that are not in the Groups module, the module loops over the groups it does have, allocating one for each unknown group. When all are used, it goes back to the first group. By setting this to false, the default groups will not be used in this cycle. |
group* | Object |
|
You can add multiple groups containing styling information that applies to a certain subset of groups.
All options described in the nodes module that make sense can be used here
(you're not going to set the same id or x,y position for a group of nodes).
Example:
var nodes = [ {id:1, group:'myGroup', label:"I'm in a custom group called 'myGroup'!"} ] var options = { groups: { myGroup: {color:{background:'red'}, borderWidth:3} } }*) the option is not called group, as shown by the example but can by any custom id, except for 'useDefaultGroups'. |
The groups module has no methods.
The groups module has no events.