react-diagrams icon indicating copy to clipboard operation
react-diagrams copied to clipboard

Is there a way to change the CSS/highlight the IN port on selection of OUT port programmatically

Open akhilesh-sankey opened this issue 8 years ago • 2 comments

Thanks! for the awesome library.

I want to highlight the all available IN port on selection of any of the OUT port. Does the current event system support this? or is there any other way to get the available ports.

akhilesh-sankey avatar Apr 04 '18 06:04 akhilesh-sankey

It should, you would need to subscribe to the canvas actions and then use something like mobx / the internal event system to have your custom port (which wraps the standard port widget as HOC) and have it change its css internally.

dylanvorster avatar Apr 22 '18 19:04 dylanvorster

Could you post an example please about how to make a custom port widget?

OscarCanek avatar Dec 21 '18 01:12 OscarCanek