From 05786fcee6d9d8f9adde828f79eb2bad34eaa5dd Mon Sep 17 00:00:00 2001 From: moklick Date: Mon, 27 Jul 2020 12:46:52 +0200 Subject: [PATCH] docs(readme): add data and classname options to edge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ed6f8d43..feea4611 100644 --- a/README.md +++ b/README.md @@ -272,6 +272,7 @@ If you wanted to display this edge, you would need a node with id = 1 (source no - `type`: 'input', 'output', 'default' or a custom one you implemented - `animated`: boolean - `style`: css properties for the edge line path +- `className`: additional class name - `label`: string - `labelStyle`: css properties for the text - `labelShowBg`: boolean - default: `true` @@ -279,6 +280,7 @@ If you wanted to display this edge, you would need a node with id = 1 (source no - `arrowHeadType`: 'arrow' or 'arrowclosed' - defines the arrowhead of the edge - `markerEndId`: custom marker end url - if this is used `arrowHeadType` gets ignored - `isHidden`: if `true`, the edge will not be rendered +- `data`: {} you can use this to pass data to your custom edges. You can find an example with different edges in the [edges example](https://reactflow.dev/edges).