Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Modal windows/dialogs #46

Open
marcusolsson opened this issue Jul 25, 2017 · 7 comments
Open

Modal windows/dialogs #46

marcusolsson opened this issue Jul 25, 2017 · 7 comments
Assignees
Labels

Comments

@marcusolsson
Copy link
Owner

tui-go should support modal windows that ask for confirmation or other user input. This would be painted on top of the application and will need some design discussions on how to support basic compositing.

Example:

┌──────────────┐
│ Really quit? │
│              │
│ OK    Cancel │
└──────────────┘
@leaanthony
Copy link

Agree (from previous discussion) about everything being keyboard friendly. I think the easiest way to support this feature is just having layers where all keyboard input is sent to the current layer. Regarding rendering, initially a painters algorithm would be easiest, then we can look at optimising this if needed.

@marcusolsson
Copy link
Owner Author

I agree that would probably be a great place to start 👍

@meain
Copy link
Contributor

meain commented Nov 4, 2017

Maybe add two types of modals. Full width as well as those need to just stay in the center.

@Syleron
Copy link

Syleron commented Dec 28, 2017

any updates on this request?

@marcusolsson
Copy link
Owner Author

Unfortunately not. I've had limited time to work on tui lately and have been prioritizing bugs. It would be really helpful if you wanted to share your use case and thoughts on how you'd expect the API to look.

@marcusolsson
Copy link
Owner Author

@Syleron Pushed some work-in-progress of this in #103. If you have the time, let me know if this would work for you!

@Syleron
Copy link

Syleron commented Jan 11, 2018

@marcusolsson Thank you! I will have a closer look and get back to you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants