-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
[FEATURE REQUEST] Collapse help using accordeon #35
Comments
i wish i could, but accordions don't work very well, maybe i can somehow do it with css. |
why they dont work? |
you can use |
you can't set visible on an accordion, sadly. but maybe i can set el-classes or whatever it's called |
you cannot set elem-classes on textboxes though, so that won't work either |
under text area put
and under file upload put
|
i got the accordion working, maybe it was fixed in a gradio update? |
well maybe is better to put the instructions where they belong next to inputs |
the accordion element has to be sent through to the ui manager so it can be correctly hidden and shown when it becomes relevant or irrelevant. these are all workarounds, because gradio does not support replacing of elements, so you have to hide them somehow, and i'm definitely not going to write down each individual element, so i made that code to manage it. the reason it is not included on the other side, in the inputs, is because the versions after 5aa6e69 skip any elements which aren't inputs. [Bonus] Here's some screenshots from when i had just implemented the hiding system: |
ok, now it looks good |
sounds more relevant to #39 |
also, planning to add a smart split option, but i'll add the hint for now |
I made a new issue to be clear #40 |
The text was updated successfully, but these errors were encountered: