I have a dash table where a user can add or delete files from. Based on the user action (delete or add files) the table needs to be updated. I thought thirst two write two callbacks, but this is not allowed:
You have already assigned a callback to the output
with ID “Table” and property “data”. An output can only have
a single callback function. Try combining your inputs and
callback functions together into one function.
But when I want to write everything in one component, I need to know which inputs was triggered. Otherwise, I do not know which action to perform (delete or add files). I did find this, but no clue when it is going to be released.
Another solution I found is using the timestamp to figure out which component was triggered, unfortunately, the upload component does not have this timestamp. So maybe adding a confirm button for uploading files could be the solution…
- Why is that you cannot have multiple outputs on one single component?
- Maybe I am overlooking something and is there a simple solution?