Colletion view get the ID of element

  1. My goal:
    Get the id or index of the element on which I am pressing a button in the collection view
  2. Issue:
    I'm working on a mobile app and I use a collectionview widget where you can add inputs, checkboxes, etc. So I need to get the id or the ability to identify which component of the collectionview I'm pressing a button on to save its data in an array, obtaining the specific data for that element. And save it in another object array based on the index.

Hey @saul98

You may consider using this forum for that.

2 Likes

Hi @saul98,

Did you sort out a solution already?

If you're using this button press event, you should have access to item and the index, i:

1 Like

Oh yes!! I solve it. Thank you very much. :man_bowing::man_bowing:

1 Like