mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #113] Feature request: Add a TreeView widget #89
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @microo8 on GitHub (May 11, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/113
It would be great to have a list with expandable items that have also lists in them.
Much of real world things can be described with a tree.
Like in the postgres example, you would have something like this:
Every item would be selectable and would toggle the expansion with eg the space key. This would be great to also browse files, check data structures (xml, json), and so on.
@rivo commented on GitHub (May 12, 2018):
This came up in #109 also (have a look at the package @dastergon mentions) and so far, I'm not sure yet if it should be a standard component of this package. It strikes me as very application dependent - even your layout differs from the layout presented in #109, and the request there was to be able to collapse and expand subtrees, too.
But since there were two requests in such a short time, maybe it should be included. So I'm adding the "on roadmap" label. But I will need some time to think about what this should look like (not just the layout/design but also the API itself).
@AaronOmanLendesk commented on GitHub (Jun 13, 2018):
Count me in for desiring this feature, too. I'm going to take a stab at implementing my own version today. I will follow up on #109 and see if that helps me out.
👍
@rivo commented on GitHub (Jun 20, 2018):
I'm happy to announce that the
TreeViewprimitive is now part oftview. Please see the documentation for details and the wiki or the presentation in thedemosdirectory for examples.If you find any bugs, let me know.