You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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 issue concerns itself with adding a new container widget to Textual.
This new container widget should be a collapsible container that can be toggled to show or hide its contents.
The diagram below exemplifies this behaviour:
For users building apps, this collapsible widget should be usable in a way that is similar to the TabbedContent widget; something along the lines of
classMyApp(App):
defcompose(self):
withCollapsibleContainer("Some title or label here"):
yieldLabel("My label")
yieldInput()
withHorizontal():
yieldButton("Button 1")
yieldButton("Button 2")
yieldButton("Button 3")
The collapsible container should have a reactive attribute that represents the label for the collapsible section.
This container widget is likely going to end up as a compound widget.
There should be another reactive attribute to control the toggled state of the container.
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.
(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 issue concerns itself with adding a new container widget to Textual.
This new container widget should be a collapsible container that can be toggled to show or hide its contents.
The diagram below exemplifies this behaviour:
For users building apps, this collapsible widget should be usable in a way that is similar to the
TabbedContent
widget; something along the lines ofThe collapsible container should have a reactive attribute that represents the label for the collapsible section.
This container widget is likely going to end up as a compound widget.
There should be another reactive attribute to control the toggled state of the container.
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!
(As a follow-up, see issue #2919.)
The text was updated successfully, but these errors were encountered: