You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

Node Filter

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.

Settings

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
Example
var graphSettings = {
    graphContainer: 'graph-container',
    moduleSettings: {'nodeFilter': {
            filterNodeTypes: ['Image', 'User'] 
        }
    }
};

var graphBrowser = new GraphBrowser(graphSettings);

Functions

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.

Search results for "Node Filter"

We could not find anything matching "Node Filter" in our documentation. Please rephrase your search.

You can also ask your questions in the Structr Google Group or create a free account in the Structr Support Portal.
Click here to send feedback to the Structr team.