Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataFrame axis names ? To customize the "New Row" / "New Column" buttons #9394

Closed
lhoestq opened this issue Sep 19, 2024 · 3 comments
Closed
Labels
enhancement New feature or request

Comments

@lhoestq
Copy link

lhoestq commented Sep 19, 2024

e.g. in my dataset app there is an option to edit the columns and types of a dataset, I use a DataFrame for that but it feels confusing to have a button "New Row" while each row in the DataFrame corresponds to a dataset column name + type

In my case I would like the button to display "New dataset column" for example

image

Otherwise let me know if you think of another way of fixing this confusion ?

@abidlabs
Copy link
Member

Hi @lhoestq this isn't something we expose in our api, but its something we can consider in the future

@abidlabs abidlabs added the enhancement New feature or request label Sep 20, 2024
@abidlabs
Copy link
Member

abidlabs commented Nov 2, 2024

We've redesigned the Dataframe component so that now there is a context menu instead. We are not likely to allow customization of every item in the menu because, among other things, we i18n these values. I would instead suggest creating a custom component, which should be pretty since its just modifying a few strings in the JS.
If you'd like to create your own, we've put together a Guide: https://www.gradio.app/guides/five-minute-guide, and we're happy to help.

@abidlabs abidlabs closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2024
@lhoestq
Copy link
Author

lhoestq commented Nov 5, 2024

thanks @abidlabs !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants