Is it possible to access Key or Name variables in Callback of Bindings

Hello,

I was wondering if it is possible to access Key or Name binded variables passed used addNodeData in the call backs of other bindings. For example:

new go.Binding(“fill”, “isHighlighted”, function(h) {
//access binded key/name variables here
}).ofObject())

If it is possible, how would one do so?

Thank you!

The second argument to the conversion function is the GraphObject that has the target property.

Read sbout “Advanced Conversions” in https://gojs.net/latest/api/symbols/Binding.html.

Remember though that the binding is evaluated automatically only when the source property, isHighlighted in your case, changes value.