New Node Picker

Search
Feedback

With the newnodepicker module the user has the ability to choose wich of the nodes that are loaded by the Node Expander Module he wants to add to the Graph-Browser.

Settings

fields description
onFinished(parentNode, parentTitle) Called when the nodes are loaded into the graph view
onChooseNodes(parentNode, parentTitle) Called when the node are loaded into the `newnodepicker-chooseNodes-items` container.

Example

var graphSettings = {
    graphContainer: 'graph-container',
    moduleSettings: {'newNodesPicker': {'onFinished': myOnFinishedFunction, 'onChooseNodes': myOnChooseNodesFunction}, }
};

var graphBrowser = new GraphBrowser(graphSettings);

Needed HTML fields

HTML IDsdescription
newnodepicker-chooseNodes-parentNodeTitleThis is the title of the parentnode that is going to be expanded
newnodepicker-chooseNodes-itemsThe nodes will be listed here for selection
newnodepicker-chooseNodes-submitWhen the element with this id is clicked, the nodes with the checked checkboxes will be loaded into the graphview
newnodepicker-chooseNodes-markAllSelectedWhen the element with this id is clicked, the checkbox of every node will be checked
newnodepicker-chooseNodes-reverseSelectionWhen the element with this id is clicked, all checkboxes will toggle their status

Created HTML fields

tagHTML IDsclassespurpose
<h3>newnodepicker-chooseNodes-parentNodeTitlenewnodepicker-chooseNodes-parentNodeTitleThis is the title of the parent node of wich the neighboring nodes can be loaded
<div>newnodepicker-chooseNodes-itemType-{nodeType}newnodepicker-chooseNodes-itemType-{nodeType} newnodepicker-chooseNodes-itemTypeThese containers will group the listed nodes by their node type
<h4>newnodepicker-chooseNodes-itemType-headernewnodepicker-chooseNodes-itemType-header newnodepicker-chooseNodes-itemType-header-{nodeType}These items represent the header for each nodetype
<h4>---checkbox newnodepicker-chooseNodes-item newnodepicker-chooseNodes-item-{nodeType}These are the checkboxes for the node selection. The name attribute of the checkboxes is selectedNodeItems[]

Graph-Browser