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

View File

@@ -1,8 +1,8 @@
#include <gtest/gtest-message.h> // for Message
#include <gtest/gtest-test-part.h> // for SuiteApiResolver, TestFactoryImpl, TestPartResult
#include <memory> // for allocator
#include <string> // for allocator, wstring
#include "ftxui/dom/elements.hpp" // for text, Element, operator|, border
#include "ftxui/dom/elements.hpp" // for text, operator|, border, Element
#include "ftxui/dom/node.hpp" // for Render
#include "ftxui/screen/box.hpp" // for ftxui
#include "ftxui/screen/screen.hpp" // for Screen