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.

Selection Tools

Grouping nodes can be useful when the same action should be executed on more than one or a few nodes. With the selection tools module it is possible to create different node groups who can be hidden, fixated or dragged at once.

functions

Name Parameters description
createNewSelectionGroup() Creates a new node group and returns the id of it
deleteSelectionGroup(groupID) groupIDThe id of the group that should be deleted Deletes a node group
activateSelectionGroup(groupID) groupIDThe group with the given id will be selected and activated With this function it is possible to use and select different node groups.
activateSelectionLasso(status) statusTrue for activate, false for deactivate This will activate the lasso tool for the selection of multiple nodes. The lasso will add the selected nodes to the currently activated node group.
dropSelection(groupID) groupID This will drop all nodes from the given group.
deactivateSelectionTools() This will deactivate the module. The node groups will not be deleted.
hideSelectionGroup(groupID, status) groupIDThe id of the group
statusTrue for hidden, false for not hidden
Hides or unhides the nodes of the given node group.
hideSelectionGroup(groupID, status) groupIDThe id of the group
statusTrue for fixated, false for not fixated
Fixates or unfixates the nodes of the given node group.

Search results for "Selection Tools"

We could not find anything matching "Selection Tools" 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.