Closed LarsVoith closed 5 years ago
onDragEnd
onDragStart
and onDrag
are custom event types that are exposed as props you need to change your code to this for it to work:
<AnnotationCallout
x={320}
y={140}
dy={117}
dx={162}
color={"#ff0032"}
className="show-bg"
editMode={true}
note={{
"title" : "001",
"dataTest":"123",
"lineType" : null,
"padding" : 15,
"titleColor" : "#ff0032"}}
connector={{"end" : "arrow"}}
onDragEnd: {(props) => {console.log(props)}
/>
Could you provide an example of onDragEnd? Im currently trying this, but i am unable to get it to work.