Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

How to get item object from it's child object?

$
0
0

@ironwill1023 wrote:

I’d like to get item object from it’s child object when user click child object.
For example:

itemTemplate:
$(go.Panel, "Auto",
  $(go.Shape, "Rectangle"),
  $(go.Panel, "Auto",
    {
       click: function(e, obj){
          // How to get item object from obj?
          //obj.part returns node, not item object
        }
    }
 )
)

Or how to get item index from it’s child object in the item template?
Regards

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles