Replies: 1 comment 3 replies
-
Hi, Last time I have to implement remove action on a repeater, I have used a dict comprehension to rebuild the dictionnary. def serial_number_remove(state, context):
items = state["items"].state
items = {k: v for k, v in items.items() if k != context["item"]}
state["items"] = items Regards, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to implement a repeater structure for a dict where each row consists of a key and a button for deleting that entry. However, it seems that the StateProxy-based structure cannot be (easily) manipulated through an associated event handler. Any ideas how this could be done?
Beta Was this translation helpful? Give feedback.
All reactions