-
|
Hello, I have a few different types of inputs and outputs. They have different symbols like squares, circles and triangles, which each have their own color. This is an indication to the user which items can be connected. Is there a way, when dragging to link a new connection, that I can specify the color for the 'f-connection-for-create'? Thanks so much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
After reading through this libraries code I came across First off you should note that in order to include meta data with my inputs/outputs, like the type of sockets they are, I just prefixed the Id with In my flow host class I have Then in my flow host template I have Then in my sass file I just set up the stroke to override like so (note the I'm in the process of evaluating libs for a node graph builder and would have loved some response from the owner, even "You should have a look at |
Beta Was this translation helpful? Give feedback.
After reading through this libraries code I came across
(dragStart)and(dragEnd)fromf-flow. After wiringdragStartand logging it I noticed it was emitting events for creating connections. For anyone who comes across this, here is how I solved it.First off you should note that in order to include meta data with my inputs/outputs, like the type of sockets they are, I just prefixed the Id with
<type>|<id>. I don't know if there is an easier way to do this but it's working for now.In my flow host class I have