October 2011
3 posts
2 tags
Changing the mouse cursor when hovering over a...
If you’re making use of the mouse events on jsPlumb connections, sooner or later you might find yourself wanting to change the mouse cursor, to indicate to the user that a particular connection is clickable or whatever.  This post gives you a quick run down on how to do so - there’s a little trick you need to be aware of. jsPlumb can render connections with one of three technologies:...
Oct 12th
Passing extra parameters to a jsPlumb connection
This is a question I’ve had a few times now - if I have several different source Endpoints that can all connect to some target Endpoint, how do I know which one has made a Connection? The concept of ‘scope’ does not, unfortunately, provide the answer, as it is limited to a single scope per Endpoint (having said that, one open issue on the Google Code site for jsPlumb is to...
Oct 12th
4 tags
Why doesn't jsPlumb offer a save function?
I’ve been asked this question enough times now that it warrants its own blog post. The simple answer is that jsPlumb is a “view” technology.  It’s the V in MVC.  You use jsPlumb to assist in the visualisation of some arbitrary data model: it’s not the data model itself, it’s a part of the picture of the data model. A well designed UI maintains a clear...
Oct 11th
7 notes