You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original issue by amirmk89 on 2023-01-12 15:10:09+00:00
Hi, awesome tool!
I have a use case where several buttons have the same text, and currently the analytics tool tracks all of them as a single button. Each of the buttons has a unique key, and I thought it could be useful to support key based indexing instead of, e.g., button label based.
Is this possible in streamlit-analytics?
Thanks!
The text was updated successfully, but these errors were encountered:
Comment by nathanjones4323 on 2023-03-21 15:53:51+00:00
Same here
I believe the issue happens during the "monkey patching" of the widgets inside main.py Here
& Here
& Here
The widget state/key gets set by default to the label of the widget during the "monkey patching", so even if you have a key set for the widget inside of your app, the state_dict used to track widget interaction will use the label of the widget.
Maybe you could move the "monkey patching" inside of your app page, but that seems messy. Ideally, we have the "monkey patched" widgets inside main.py inherit the key from the app file.
Original issue by amirmk89 on 2023-01-12 15:10:09+00:00
Hi, awesome tool!
I have a use case where several buttons have the same text, and currently the analytics tool tracks all of them as a single button. Each of the buttons has a unique key, and I thought it could be useful to support key based indexing instead of, e.g., button label based.
Is this possible in streamlit-analytics?
Thanks!
The text was updated successfully, but these errors were encountered: