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

FileUpload displayed counter should be optional #2904

Open
kebwi opened this issue Jun 19, 2020 · 3 comments
Open

FileUpload displayed counter should be optional #2904

kebwi opened this issue Jun 19, 2020 · 3 comments

Comments

@kebwi
Copy link

kebwi commented Jun 19, 2020

Not all users necessarily want the FileUpload button to display the upload-count in parentheses. Some applications and interface designs/layouts may require fine-grained control of the look of the interface and could find the counter extraneous or simply "busying". I have found no way to get rid of it. I can reset it to 0 by directly assigning _counter to 0 when the button is activated. I can assign my own text description, icon, button_style (color) to the button. I have lots of control over the look of the button...but I cannot for the life of me find a way to get rid of the counter despite my best efforts to dig through the internal variables of the object. I think it is entirely reasonable to make the counter's presence on the button optional.

Thanks.

@badiku
Copy link

badiku commented Dec 24, 2020

really confusing counter, why still exists?

@jtpio
Copy link
Member

jtpio commented Feb 17, 2021

The counter should now display the number of uploaded files instead of being incremented after each upload.

Which was probably implemented in #2666.

Would you like to try the new behavior with the alpha release of ipywidgets 8?

pip install ipywidgets==8.0.0a3

Thanks!

@gtdang
Copy link

gtdang commented Dec 12, 2023

It would be nice to have an option to remove the counter. We have a GUI that loads default parameter files at composition, but users can later load their own data file with the FileUpload button. It's a bit confusing to the user to see a 0 at the start when there are pre-loaded loaded parameters. It would be nice to be able to turn off the default counter so we can update the display with a custom text that reflects our application's state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants