mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #49] Feature Request: Modal with flexbox items #34
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#34
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 @Hecatoncheir on GitHub (Feb 4, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/49
It will be useful for add some items to modal.
Some description of input for example.
@rivo commented on GitHub (Feb 4, 2018):
At the moment, the modal is basically a message window like the browsers'
alert()orconfirm()modals. I'm not sure I understand what you mean by "description of input". Could you provide me with an example?@Hecatoncheir commented on GitHub (Feb 5, 2018):
Yes, something like this:

@rivo commented on GitHub (Feb 6, 2018):
This looks much more specific than just a form. I don't know exactly what it does but it looks like an
InputFieldfor the search along with aTextViewfor the results. As this seems too far from the idea of theModalas it is at the moment, I would suggest that you build this yourself:The latest commit for
tviewallows you to providenilvalues to theFlexlayout. This should allow you to center your box on the screen even if you don't know the actual screen size.Alternatively, you could build your own
Primitive. It's a bit more complicated but it will give you precise control over all aspects. You can check out theModalclass on how this is done. Here's an example which I quickly wrote up for your case (I haven't run this, it's just a rough draft):Let me know if this helps.