List item overwritten by linkedList item

I am creating a component as:

List
-> KeyValue
-> LinkedList

I fill the LinkedList with {{item}} of the List. Yet, within the events of the LinkedList (such as onclick) item becomes the item of the LinkedList we clicked on. The hint says it is from the List (and shows that data when writing item), but once I use it it only allows to get the data of the item of the LinkedList I clicked on.

To be able to carry over information from the List to the event of the LinkedList, I had to store it within tooltip. Is there any chance to either:

  • Add a value or data field
  • Have a way to disambiguate the parent item and child item

Hey there @AlexisP,

I'm not sure I completely understand your setup, however if I understood correctly you can use self.value, or refer to the components, e.g. KeyValue.data directly (if you're using script within the event handler then you can't use self but you can refer to the component name, e.g. LinkedList.data or KeyValue.data and this will return whatever values available for the instance where the click event is triggered.