Events releated with connection and disconnection #449
Unanswered
Felipe7575
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, Im making a ChatBot flow with svelve and I have a problem realeated with how to get to know that two nodes were connected and wich of all nodes. I have found that there is a prop event call on:connection but I couldnt make it work. I need this in order to modify Json where I stored the node data and connections.
This is my custom Node, where I should be able to see a "Hi" in the console, but is not working. Any help would be great!!
`<script>
import {Node,Anchor } from 'svelvet'
export let position,idNode,bgColor
const handleClick = () =>{
console.log("HI")
}
</script>
<Node id={idNode} let:grabHandle let:selected {position} {bgColor} borderColor="black" on:connection="{handleClick}" >
Beta Was this translation helpful? Give feedback.
All reactions