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

Add an accordion widget #2919

Closed
rodrigogiraoserrao opened this issue Jul 11, 2023 · 1 comment
Closed

Add an accordion widget #2919

rodrigogiraoserrao opened this issue Jul 11, 2023 · 1 comment

Comments

@rodrigogiraoserrao
Copy link
Contributor

(This issue is reserved for the EuroPython 2023 sprint. If you are not participating in the sprint, please refrain from working on this issue. Thanks!)

This depends on #2918.

This issue concerns itself with adding a new accordion widget to Textual.
An accordion is a collection of mutually exclusive collapsible containers.
An accordion can contain any number of collapsible containers, but only one may be expanded at a time.

Roughly speaking, an accordion widget will be to the collapsible containers what the RadioSet widget is to the RadioButton widgets.
In fact, take a look at _radio_set.py for some inspiration with regards to how you can orchestrate the collapsible containers inside the accordion.

Take a look at #2333 to see what files need to be changed when you implement a new widget.
Then, don't be like me and also do the final step shown in #2399 to add your new widget to the widget gallery.

Good luck and have fun!

Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

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

No branches or pull requests

2 participants