How to call click event for dinamic view extention

I was looking the best dynamic card view extension to list my item beautifully. finally i made this ui using dynamic component extension made by @yusufcihan

but i should to know how to call specific event when one of this list item clicked. if you guys use this extension. this is how you should call. example letus start with creating simple layout using dynamic card view.

:bullseye: Step one: create list view having picture in it.

:bullseye: Step two: make specific component clickable that you want to click.

look the block at the end i make it clickable :eyes:

:bullseye: Step three: Now we should state list variable that will hold the component id at a time it created.

blocks(6)

then we add it in the first function after that specific clickable component created(image in my case)

as you see the variable will add each component id while component created.

:bullseye: Step four: then we will add event called any image clicked and this function will return component that is clicked. and finally don’t get the component id itself rather get the index where that component id found in your list variable.

:hammer_and_pick: it will give you an index where that specific clickable component found in your variable. guys then you can link that index with your real list you want to work on.

:warning: finally don’t forget to clear the variable when you want to call this dynamic list creator event again.

thanks :folded_hands: