-
QuestionI'm try to pass args to event handlers for either ft.IconButton's on_click or ft.DataCell's on_tap handler. Is it possible ? Code sampleNo response Error messageNo response ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
kspviswa
Jul 3, 2024
Replies: 2 comments
-
I think I found a way. We can add value to |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kspviswa
-
You can use lambda functions: on_click=lambda e: my_func(e, arg1, arg2, argx) Obviously, if your function doesnt need |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think I found a way. We can add value to
key
and then inspect it as part offt.ControlEvent's key
on the callback