gradio
gradio copied to clipboard
Add an "add row" and "add column" event to `gr.DataFrame`
- [ 1] I have searched to see if a similar issue already exists.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Is it possible to register only the new row or new column listener? I want to automatically give a role type to the first column when I add a new row, but the dataset only has the change method, and he triggers the change when I'm done changing the contents of the row, which is a performance concern!
Describe the solution you'd like
A clear and concise description of what you want to happen.
Additional context
Add any other context or screenshots about the feature request here.
I would like to add an add method that is only triggered by adding a new row or a new column
self.masks_dataset.change(fn=func_signals.mask_setting_role,
inputs=[self.masks_dataset],
outputs=[self.masks_dataset])