Menu of components (#131)

Allow Container::Vertical and Container::Horizontal to have an
external selector, similar to Container::Tab.

This is useful for implementing a menu of menu.

Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
Shreyas Atre
2021-06-27 21:23:17 +05:30
committed by GitHub
parent a2e7ff852e
commit bd21cac2b6
10 changed files with 168 additions and 25 deletions

View File

@@ -1,4 +1,5 @@
#include <memory> // for make_shared
#include <string> // for wstring
#include "ftxui/dom/elements.hpp" // for Element, separator
#include "ftxui/dom/node.hpp" // for Node