taking parameters from button click on loop does not work #981
-
I want to retrieve data from what I click instead output like this
mycode
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
What data are you trying to get at? It's not especially clear from your code? |
Beta Was this translation helpful? Give feedback.
-
i want to get data text , priority from tasks
and my expectation i want to get the data i click like i['text'] and i['priority'] but instead I get data that is not as expected. like this when printed
|
Beta Was this translation helpful? Give feedback.
-
and how to integrate reactpy with ui css framework like bootstrap. is there a way? |
Beta Was this translation helpful? Give feedback.
-
thanks solved |
Beta Was this translation helpful? Give feedback.
This is because, just as in Javascript, the first parameter passed to event handlers is information about the event itself. Your function
lambda i=i: klik(i)
should be rewritten aslambda event, i=i:klik(i)