[GH-ISSUE #237] a way to add inputfield at desired position #181

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

Originally created by @shishirsriv on GitHub (Feb 17, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/237

Thanks for the awesome library, i really liked tview.
Here is my use case:
I have multiple checkbox and inputfields on a form. i am looking at a way where i can show a few inputfields only if a checkbox is checked. i understand there is no hide/show and hence creating an inputfield at runtime and adding to the form is fine, but that always adds at the end of the form.

Originally created by @shishirsriv on GitHub (Feb 17, 2019). Original GitHub issue: https://github.com/rivo/tview/issues/237 Thanks for the awesome library, i really liked tview. Here is my use case: I have multiple checkbox and inputfields on a form. i am looking at a way where i can show a few inputfields only if a checkbox is checked. i understand there is no hide/show and hence creating an inputfield at runtime and adding to the form is fine, but that always adds at the end of the form.
kerem closed this issue 2026-03-04 01:02:42 +03:00
Author
Owner

@dguendisch commented on GitHub (Feb 17, 2019):

You could use a Grid Layout in this case. Its AddItem method allows you to place primitives at a fixed position in the layout rather than appending them.

<!-- gh-comment-id:464472207 --> @dguendisch commented on GitHub (Feb 17, 2019): You could use a [Grid Layout](https://godoc.org/github.com/rivo/tview#Grid) in this case. Its `AddItem` method allows you to place primitives at a fixed position in the layout rather than appending them.
Author
Owner

@rivo commented on GitHub (Mar 8, 2019):

@shishirsriv, please have a look at #192 and let me know if this would be a solution to your problem. It's not available yet but I'm planning to introduce something like that.

<!-- gh-comment-id:471041674 --> @rivo commented on GitHub (Mar 8, 2019): @shishirsriv, please have a look at #192 and let me know if this would be a solution to your problem. It's not available yet but I'm planning to introduce something like that.
Author
Owner

@rivo commented on GitHub (Apr 5, 2019):

Will reopen when there's new information.

<!-- gh-comment-id:480343714 --> @rivo commented on GitHub (Apr 5, 2019): Will reopen when there's new information.
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#181
No description provided.