Class links.Network.Groups
Groups
This class can store groups and properties specific for groups.
Defined in: network.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
<static> |
links.Network.Groups.DEFAULT
default constants for group colors
|
Method Attributes | Method Name and Description |
---|---|
add(groupname, style)
Add a custom group style
|
|
clear()
Clear all groups
|
|
get(groupname)
get group properties of a groupname.
|
Field Detail
<static>
links.Network.Groups.DEFAULT
default constants for group colors
Method Detail
{Object}
add(groupname, style)
Add a custom group style
- Parameters:
- {String} groupname
- {Object} style
- An object containing borderColor, backgroundColor, etc.
- Returns:
- {Object} group The created group object
clear()
Clear all groups
{Object}
get(groupname)
get group properties of a groupname. If groupname is not found, a new group
is added.
- Parameters:
- {*} groupname
- Can be a number, string, Date, etc.
- Returns:
- {Object} group The created group, containing all group properties