Describe the bug
I will explain a scenario in the present functionality of the buttons, where the name of the buttons will be given as the callback function, and also for the callback function the name is displayed on the webpage so we have to create separate functions for every button. now let's think there 6 buttons they are having the same functionality but the only change is we use the text inside the button for it.
for example: There are 6 buttons of song names inside it when we click on any one song we will get the midi file of the song all buttons behave the same but the only change is taking the name of the song by action.value method but for this in the current implementation of chainlit we have to create separate functions for all
Expected behavior
Instead of giving the name as the callback function we can give separate id for all buttons because the name is displayed on the webpage.
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
Describe the bug I will explain a scenario in the present functionality of the buttons, where the name of the buttons will be given as the callback function, and also for the callback function the name is displayed on the webpage so we have to create separate functions for every button. now let's think there 6 buttons they are having the same functionality but the only change is we use the text inside the button for it.
for example: There are 6 buttons of song names inside it when we click on any one song we will get the midi file of the song all buttons behave the same but the only change is taking the name of the song by action.value method but for this in the current implementation of chainlit we have to create separate functions for all
Expected behavior Instead of giving the name as the callback function we can give separate id for all buttons because the name is displayed on the webpage.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.