diff --git a/docs/network/manipulation.html b/docs/network/manipulation.html
index 0cab9e16..1ca59ccb 100644
--- a/docs/network/manipulation.html
+++ b/docs/network/manipulation.html
@@ -74,15 +74,15 @@
initiallyActive | Boolean | true | Toggle whether the toolbar is visible initially or if only the edit button is visible initially. |
locale | String | 'en' | Select the locale. By default, the language is English. If you want to use another language, you will need to define your own locale and refer to it here. |
locales | Object | defaultLocales | Locales object. By default only 'en' and 'nl' are supported. Take a look at the locales section below for more explaination on how to customize this. |
- functionality | Object | Object | You can use this object to switch certain functionalities on or off. By default they are all on. |
- functionality.addNode | Boolean | true | Toggle the adding of nodes. |
- functionality.addEdge | Boolean | true | Toggle the adding of edges. |
- functionality.editNode | Boolean | true | Toggle the editing of nodes. Even if this is enabled, it will only be shown if a handler function is set for editNode . |
- functionality.editEdge | Boolean | true | Toggle the editing of edges. |
- functionality.deleteNode | Boolean | true | Toggle the deletion of nodes. |
- functionality.deleteEdge | Boolean | true | Toggle the deletion of edges. |
- handlerFunctions | Object | Object | These functions are inserted before the action is performed. If a node is going to be added through the manipulation system, the addNode function will be called first. With this, you can provide a gui for your users, abort the process or anything else you want to do. |
- handlerFunctions.addNode | Function | undefined | Called when the user clicks the canvas in 'addNode' mode. This function will receive two variables: the properties of the node that can be created and a callback function. If you call the callback function with the properties of the new node, the node will be added.
Example:
+ |
functionality | Object | Object | You can use this object to switch certain functionalities on or off. By default they are all on. |
+ functionality.addNode | Boolean | true | Toggle the adding of nodes. |
+ functionality.addEdge | Boolean | true | Toggle the adding of edges. |
+ functionality.editNode | Boolean | true | Toggle the editing of nodes. Even if this is enabled, it will only be shown if a handler function is set for editNode . |
+ functionality.editEdge | Boolean | true | Toggle the editing of edges. |
+ functionality.deleteNode | Boolean | true | Toggle the deletion of nodes. |
+ functionality.deleteEdge | Boolean | true | Toggle the deletion of edges. |
+ handlerFunctions | Object | Object | These functions are inserted before the action is performed. If a node is going to be added through the manipulation system, the addNode function will be called first. With this, you can provide a gui for your users, abort the process or anything else you want to do. |
+ handlerFunctions.addNode | Function | undefined | Called when the user clicks the canvas in 'addNode' mode. This function will receive two variables: the properties of the node that can be created and a callback function. If you call the callback function with the properties of the new node, the node will be added.
Example:
var options = {
handlerFunctions: {
@@ -93,9 +93,9 @@ var options = {
}
}
- If you do not want the node created, do not call the callback function or call the callback function null or no argument.
+ If you do not want the node created, do not call the callback function or call the callback function null or no argument.
|
- handlerFunctions.addEdge | Function | undefined | Called when the user drags the new edge from one node to the next in 'addEdge' mode. This function will receive two variables: the properties of the edge that can be created and a callback function. If you call the callback function with the properties of the new edge, the edge will be added.
Example:
+ |
handlerFunctions.addEdge | Function | undefined | Called when the user drags the new edge from one node to the next in 'addEdge' mode. This function will receive two variables: the properties of the edge that can be created and a callback function. If you call the callback function with the properties of the new edge, the edge will be added.
Example:
var options = {
handlerFunctions: {
@@ -113,11 +113,11 @@ var options = {
}
}
- This example code will show a popup if you connect a node to itself to ask you if that was what you wanted. If you do not want the edge created, do not call the callback function or call the callback function null or no argument. |
- handlerFunctions.editNode | Function | undefined | Called when a node is selected and the 'Edit Node' button on the toolbar is pressed. This function will be called like the addNode function with the node's data and a callback function. |
- handlerFunctions.editEdge | Function | undefined | Called when an edge is selcted and the 'Edit Edge' button on the toolbar is pressed. This function will be called in the same way the addEdge function was called. If the callback is not performed, the edge will remain hanging where it was released. To cancel, call the callback function with null as argument or without arguments. |
- handlerFunctions.deleteNode | Function | undefined | Called when a node is selected and the 'Delete selected' button is pressed. |
- handlerFunctions.deleteEdge | Function | undefined | Called when an edge is selected and the 'Delete selected' button is pressed. |
+ This example code will show a popup if you connect a node to itself to ask you if that was what you wanted. If you do not want the edge created, do not call the callback function or call the callback function null
or no argument.
+ handlerFunctions.editNode | Function | undefined | Called when a node is selected and the 'Edit Node' button on the toolbar is pressed. This function will be called like the addNode function with the node's data and a callback function. |
+ handlerFunctions.editEdge | Function | undefined | Called when an edge is selcted and the 'Edit Edge' button on the toolbar is pressed. This function will be called in the same way the addEdge function was called. If the callback is not performed, the edge will remain hanging where it was released. To cancel, call the callback function with null as argument or without arguments. |
+ handlerFunctions.deleteNode | Function | undefined | Called when a node is selected and the 'Delete selected' button is pressed. |
+ handlerFunctions.deleteEdge | Function | undefined | Called when an edge is selected and the 'Delete selected' button is pressed. |
controlNodeStyle | Object | Object | You can supply any styling information you'd like here. All fields described in the nodes module are allowed except obviously for id, x, y and fixed.
Default:
{
|