Dynamically change attribute values

627 views
Skip to first unread message

Avinash Dangi

unread,
Nov 2, 2016, 8:36:48 AM11/2/16
to JointJS
First of all I would like to congratulate the JointJs team for such an amazing drawing library.

Problem:
I want to set the attributes of a graph element through a form on click event. But when I click the element again , it show the original properties that were set when initializing the model.

If someone is interested in helping , I will explain it further.

Thank You

Vladimir Talas

unread,
Nov 15, 2016, 10:34:23 AM11/15/16
to joi...@googlegroups.com

Hi,

Correct way how to set the attribute on element is described here : http://resources.jointjs.com/docs/jointjs/v1.0/joint.html#dia.Element.prototype.attr

Send a snippet or a fiddle of you code please,

Regards,

Vladimir

--

---
You received this message because you are subscribed to the Google Groups "JointJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jointjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Avinash Dangi

unread,
Nov 17, 2016, 4:05:02 AM11/17/16
to JointJS

I am trying to set custom attribute value through a form. But if I click the element again it shows the properties previously assigned rather than showing the one. 
I want to input SiteStation variable's value from user and assign it to that particular element. For the time my element is there on the graph it should have that value attatched it.

Regards,
Avinash  
Reply all
Reply to author
Forward
0 new messages