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
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>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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