Skip to content

Page / Views transitions #376

Answered by ArthurSonzogni
fdidron asked this question in Q&A
Apr 15, 2022 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

I think you should use Container::Tab. It forward Render() and OnEvent() toward the component selected.
https://arthursonzogni.github.io/FTXUI/namespaceftxui_1_1Container.html#aea9fe244eeeb420276bcc5760b46953d

In your example. You are wrapping "view" with the Renderer() function. The problem is that later you make view to point toward a new object.
It means the events are still forwarded to the original component.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ArthurSonzogni
Comment options

@ArthurSonzogni
Comment options

@ArthurSonzogni
Comment options

@fdidron
Comment options

@fdidron
Comment options

Answer selected by fdidron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants