mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #536] tabs in panels? #389
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#389
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 @buzzdan on GitHub (Nov 30, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/536
is it possible to have tabs inside panels like in
lazygit?@rivo commented on GitHub (Dec 4, 2020):
Currently not without writing your own functionality that does this. If you want to do that, you can check out https://github.com/rivo/tview/wiki/Primitives.
If you look at the presentation demo code, there's something similar in there, with a
TextViewfor the "tabs" and aPagesprimitive for the content. The code is here. It's conceivabe to wrap this functionality in its own class so you can have multiple such elements on a page.Let me know if this helps.
@tslocum commented on GitHub (Dec 4, 2020):
TabbedPanels is an example of extracting this functionality to a new class. Let me know if you'd like a PR.
@buzzdan commented on GitHub (Dec 17, 2020):
thank you guys for the comments 🙏
i will need to implement it soon
@tslocum cview looks pretty neat! i'll check it out !