mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #359] [Question] How do I display form above the grid? #267
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#267
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 @skanehira on GitHub (Oct 30, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/359
Previously, in #264 you could use "pages" to display the form in the grid, but now it seems that you can't.
Is there a way to display the form while displaying the grid?
@rivo commented on GitHub (Nov 27, 2019):
I don't think anything has changed in how
Pagesrenders pages. You can still display two primitives at the same time. Here's some example code:And what it looks like:
I guess the question is, what function are you using to display your form?
@skanehira commented on GitHub (Nov 28, 2019):
@rivo My sample code is following.
I use
Gridto show form or some primitive in center.When I use
github.com/rivo/tview v0.0.0-20190324182152-8a9e26fab0ffwith go modules, my sample code will work good.But
github.com/rivo/tview v0.0.0-20191127181827-9c225ecd5722is doesn't work fine.Is there any other way to put primitives such as form in the center of the screen?
@rivo commented on GitHub (Nov 29, 2019):
Right. Thanks for this additional info. This one line in the
Gridcode that was missing made me think it was a bug when I worked on fixing something else. But it wasn't. It's back in there now so it should work as before.@skanehira commented on GitHub (Nov 29, 2019):
@rivo Thanks :)
Now it works fine :)