[GH-ISSUE #763] Feature request: floating window/modal #556

Closed
opened 2026-03-04 01:05:59 +03:00 by kerem · 3 comments
Owner

Originally created by @golangdojo99 on GitHub (Sep 27, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/763

Currently, a widget is set as root using (*tview.Application).SetRoot method and the current root widget can be changed can be using the same method. Only a single widget can be root at once, widgets like Flex and Grid allow users to layout widgets into a single widget and set it as root to display multiple widgets. However, there is no such widget that can "float" above the root widget and still display the content of the root widget as is.

Originally created by @golangdojo99 on GitHub (Sep 27, 2022). Original GitHub issue: https://github.com/rivo/tview/issues/763 Currently, a widget is set as root using `(*tview.Application).SetRoot` method and the current root widget can be changed can be using the same method. Only a single widget can be root at once, widgets like Flex and Grid allow users to layout widgets into a single widget and set it as root to display multiple widgets. However, there is no such widget that can "float" above the root widget and still display the content of the root widget as is.
kerem closed this issue 2026-03-04 01:05:59 +03:00
Author
Owner

@rivo commented on GitHub (Sep 27, 2022):

Please check out Pages.

<!-- gh-comment-id:1259250408 --> @rivo commented on GitHub (Sep 27, 2022): Please check out `Pages`.
Author
Owner

@golangdojo99 commented on GitHub (Sep 28, 2022):

Pages widget can be used to switch between multiple widgets, not display one on top of the other while conserving the background of the widget that is at the bottom.

<!-- gh-comment-id:1260503132 --> @golangdojo99 commented on GitHub (Sep 28, 2022): `Pages` widget can be used to switch between multiple widgets, not display one on top of the other while conserving the background of the widget that is at the bottom.
Author
Owner

@rivo commented on GitHub (Sep 28, 2022):

Yes, it can. Check out the Wiki:

https://github.com/rivo/tview/wiki/Modal

<!-- gh-comment-id:1260619230 --> @rivo commented on GitHub (Sep 28, 2022): Yes, it can. Check out the Wiki: https://github.com/rivo/tview/wiki/Modal
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#556
No description provided.