org.visallo.graph.collapsed.class

Function that can change cytoscape classes of nodes

Register a function that can add or remove classes from cytoscape collapsed nodes for custom styling.

Registration

registry.registerExtension("org.visallo.graph.collapsed.class", config)

Source:
Tutorials:
See:
Configuration Properties:
Name Type Description
config classFn

Validation Function

Extensions registered must pass this validation check to be used.

function extensionValidator(e) {
    return _.isFunction(e);
}

Type Definitions

classFn(collapsedNode, classes)

Source:

Mutate the classes array to adjust the classes.

Example
function(collapsedNode, cls) {
    cls.push('org-example-cls');
}
Parameters:
Name Type Description
collapsedNode object

The collapsed item that represents the node

classes array.<string>

List of classes that will be added to cytoscape node.