You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In issue #64, we introduced more information into the label in order to summarize both the commitment and the event. However, the built in edges in React Flow only supports text. So it shows up as an extremely long non-wrapping text box.
We should make a custom edge type that allows displaying HTML in it. According to the docs, the best way of doing this would be to add a custom edge with a <foreignObject /> that wraps our HTML. See: https://reactflow.dev/docs/examples/edges/edge-with-button/
The text was updated successfully, but these errors were encountered:
adaburrows
changed the title
Feature: Add custom HTML labeled edge for Rect Flows.
Feature: Add custom HTML labeled edge for React Flows.
Aug 6, 2022
adaburrows
changed the title
Feature: Add custom HTML labeled edge for React Flows.
Feature: Add custom HTML labeled edge for React Flows
Aug 6, 2022
adaburrows
changed the title
Feature: Add custom HTML labeled edge for React Flows
Feature: Add custom HTML labeled edge for React Flow
Aug 6, 2022
I think this should be closed in favor of #164, where we would no longer need to display all the information about the Intents, Commitments, and Events on the line, as they would become the nodes. This means we could actually create something of a hybrid between the original NYTL and Simon's Rock/Code A flow charts.
In issue #64, we introduced more information into the label in order to summarize both the commitment and the event. However, the built in edges in React Flow only supports text. So it shows up as an extremely long non-wrapping text box.
We should make a custom edge type that allows displaying HTML in it. According to the docs, the best way of doing this would be to add a custom edge with a
<foreignObject />
that wraps our HTML. See: https://reactflow.dev/docs/examples/edges/edge-with-button/The text was updated successfully, but these errors were encountered: