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
When there are more than one Autocomplete items in an App, is there a way to handle events only for the item that caused the event?
Currently, from within handler on_auto_complete_selected(self, event) I think there is no way to distinguish from which item the event was caused and take appropriate action, because the event itself does not contain such information.
So, all my autocomplete items will have the same event handling, but that is something that might not be the desired behavior.
The text was updated successfully, but these errors were encountered:
Had the same problem.
This can be resolved by using the additional meta fields (event.item.left_meta) which can be inserted while you fill your DropdownItem List (takes up to three arguments, main, left_meta and right_meta)
This way you can check in the on_auto_complete_select function which event this is coming from.
When there are more than one Autocomplete items in an App, is there a way to handle events only for the item that caused the event?
Currently, from within handler
on_auto_complete_selected(self, event)
I think there is no way to distinguish from which item the event was caused and take appropriate action, because the event itself does not contain such information.So, all my autocomplete items will have the same event handling, but that is something that might not be the desired behavior.
The text was updated successfully, but these errors were encountered: