javascript - GoJS: use more than one parameter in a conversion function -
i need use 2 properties of node in gojs perform particular operation. here current code:
$(go.picture, { //some properties }, new go.binding("source", "item_status", geticon)), //.... function geticon(item_status) { //do }
is possible modify above code geticon() function gets second parameter called item_id? e.g can this:
new go.binding("source", "item_status","item_id", geticon)), .... function geticon(item_status, item_id) {}
thanks
answering own question again...
to data particular node, can pass ""
instead of "item_status"
binding function.
go.binding("source", "", geticon)), ... geticon(node){ var x = node.item_status; var y = node.key; }
Comments
Post a Comment