Obtaining ID of dynamically generated button after click

Hello everyone, I am a bit new to Dash, so I apologize if this question has a simple answer.

Pretty much I am working on an interface that has tags/buttons dynamically created based on user input. The idea is that if a specific tag is clicked on, it will be removed from the interface.

The issue is that since the button tags are generated dynamically, I have no reliable way to predict what the id of every tag will be. Is there a way for button presses to be identified in such a way that allows me to know which tag was clicked, without also knowing the ids of the buttons in advance?

Hi @Conor and welcome to Dash :slight_smile:

Pattern matching callbacks might work for you. Here’s an example