VisualDataWeb / WebVOWL

Visualizing ontologies on the Web
http://vowl.visualdataweb.org/webvowl.html
MIT License
718 stars 211 forks source link

Webvowl nodes edit capture event #182

Open saravanch2018 opened 2 years ago

saravanch2018 commented 2 years ago

Dear Team, While I could not find extensive documentation about the webvowl properties/methods, I had some difficulty understanding it. My team had few problems with some negative testing. A new node is added by simply clicking in the graph area with a default name say node 7. On clicking outside of the node it is immediately saved to the backend. The developer by default uses the onblur event on the node to trap the event and execute some backend code. But I did not want that to happen. Only if the user presses enter while having focus on the currently editing node, it should be saved to the database. If user clicks outside of the graph, this should not trigger any backed logic.

In order to do that, I have tried using mouse clicks. But I am unable to differentiate between a onblur and the mouseclick in the webvowl node object. This is a problem because I allow the user to save the node to the database only on hitting enter on the currently selected node.

I request you to provide me either to the documentation of the attributes and methods of webvowl or how to differentiate between a mouseclick and an onblur using the webvowl node's attributes/methods? Any help is appreciated. Even if there is any sample link of a demo that will be great

omarryhan commented 2 years ago

Any luck @saravanch2018? I'm facing a similar issue.