[GH-ISSUE #721] Question on modal form #527

Closed
opened 2026-03-04 01:05:45 +03:00 by kerem · 1 comment
Owner

Originally created by @marioemmanuel on GitHub (Apr 15, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/721

I would like to know if it is possible to implement a modal form. Reading the documentation I understand that only a message with two buttons conform the Modal widget. I am not sure if that is the case or I misunderstood the functionalities and I am wondering if it would be possible to display a complete entry modal form.

The use case is to have a Page with a table with values (front-end from a database) and then when user press a key he can enter a new record filling in InputFields, Checkboxes etc in a modal window that appears in front of the table.

If that is possible any sample code would be appreciated.

Originally created by @marioemmanuel on GitHub (Apr 15, 2022). Original GitHub issue: https://github.com/rivo/tview/issues/721 I would like to know if it is possible to implement a modal form. Reading the documentation I understand that only a message with two buttons conform the Modal widget. I am not sure if that is the case or I misunderstood the functionalities and I am wondering if it would be possible to display a complete entry modal form. The use case is to have a Page with a table with values (front-end from a database) and then when user press a key he can enter a new record filling in InputFields, Checkboxes etc in a modal window that appears in front of the table. If that is possible any sample code would be appreciated.
kerem closed this issue 2026-03-04 01:05:46 +03:00
Author
Owner

@rivo commented on GitHub (Apr 15, 2022):

Check out the Wiki: https://github.com/rivo/tview/wiki/Modal

It contains instructions on how to make any other primitive a modal, for example a Form.

<!-- gh-comment-id:1100268484 --> @rivo commented on GitHub (Apr 15, 2022): Check out the Wiki: https://github.com/rivo/tview/wiki/Modal It contains instructions on how to make any other primitive a modal, for example a `Form`.
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#527
No description provided.