mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #583] How to update a widget inside a flex #427
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#427
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 @michaeltlombardi on GitHub (Mar 23, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/583
I'm (slowly) working my way through a project to build a UI with tview and want to be able to do the following things:
CtrlMis fine)I've run into the following issues:
Repro code (NB: code organization and logic is bad/non-idiomatic, this is both my first go project and my first stab at writing non-library code at all):
@rivo commented on GitHub (Apr 26, 2021):
You'll want to use a
Pagescomponent inside theFlex. Then you can always switch between pages to bring them to the front. And it won't require you to duplicate all the other parts of the page.That's because you're using
Ctrl-Mwhich is also triggered when hitting theEnterkey (see here for more infos). Maybe switch toCtrl-N.If you use the
Pagescomponent as suggested above, you can simply switch the focus to it and it should then also select the top-most page.Let me know if this helps.