-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to render stateful widget inside popup #10
Comments
I'm open to the idea. Do you any ideas about what the the API would look like if you implemented this? |
I think the most obvious way is to create another type |
A similar gap was mentioned in https://discord.com/channels/1070692720437383208/1072907135664529508/1237425024969871420
I have a preference for this to be a single widget rather than two if it makes sense. The trait implementations are after all just traits Perhaps this is not possible however. |
Moving this issue to tui-widgets repo |
I want to render a stateful widget(The built-in widget list). But it appears that I can't pass the state through tui-popup.
Would it be possible to design an API to allow state to be passed through tui-popup to a inner stateful widget? Or should we change the API to make popup work more like a
Block
so that users could manually render whatever they want inside it?The text was updated successfully, but these errors were encountered: