Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Events releated with connection and disconnection#449

Unanswered
Felipe7575 asked this question inQ&A
Discussion options

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}" >

Click Me
`Thanks!!!
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@Felipe7575

[8]ページ先頭

©2009-2025 Movatter.jp