mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-10-01 17:29:07 +08:00
Fix format. Try compile on Windows.
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#include "ftxui/component/container.hpp"
|
||||
#include "ftxui/component/input.hpp"
|
||||
#include "ftxui/component/menu.hpp"
|
||||
#include "ftxui/component/checkbox.hpp"
|
||||
#include "ftxui/component/screen_interactive.hpp"
|
||||
#include "ftxui/component/toggle.hpp"
|
||||
#include "ftxui/screen/string.hpp"
|
||||
@@ -14,15 +13,16 @@ class MyComponent : public Component {
|
||||
MyComponent() {
|
||||
Add(&container);
|
||||
checkbox.resize(30);
|
||||
for(int i = 0; i<checkbox.size(); ++i) {
|
||||
for (int i = 0; i < checkbox.size(); ++i) {
|
||||
checkbox[i].label = (L"CheckBox " + to_wstring(i));
|
||||
container.Add(&checkbox[i]);
|
||||
}
|
||||
}
|
||||
|
||||
// clang-format off
|
||||
Element Render() override {
|
||||
Elements content;
|
||||
for(auto& it : checkbox) {
|
||||
for (auto& it : checkbox) {
|
||||
content.push_back(it.Render());
|
||||
}
|
||||
return vbox(std::move(content))
|
||||
|
Reference in New Issue
Block a user