With this module the nodes of the Graph-Browser and its modules can be filtered by node types. It has a whitelist or a blacklist modus.


Name Type Description
filterType string "whitelist" or "blacklist" (default)
filterOnStart boolean If true, the module will filter the nodes on startup of the Graph-Browser
filterNodeTypes Array The list of node types that should be filterd
var graphSettings = {
    graphContainer: 'graph-container',
    moduleSettings: {'nodeFilter': {
            filterNodeTypes: ['Image', 'User'] 

var graphBrowser = new GraphBrowser(graphSettings);


Name Parameters Description
addNodeTypeToFilter(nodeType) {string} nodeTypeThe node type to add Adds the given node type to the filter
removeNodeTypeFromFilter {string} nodeTypeThe node type to remove Removes the given node type from the filter
setFilterType(filterType) {string} filterTypeThe new filter type Changes the filter type to "whitelist" or "blacklist"
clearFilterNodeTypes(filterType) Clears the node types of the filter
filterGraph() Filters the graph.


About this article
Last change 2018-09-12
Topics ExperimentalStructr 2.0