17 std::array<bool, 30> states;
20 for (
int i = 0; i < 30; ++i) {
22 container->Add(
Checkbox(
"Checkbox" + std::to_string(i), &states[i]));
25 auto renderer =
Renderer(container, [&] {
26 return container->Render() | vscroll_indicator | frame |
31 screen.Loop(renderer);
static ScreenInteractive FitComponent()
Component Renderer(Component child, std::function< Element()>)
Return a new Component, similar to |child|, but using |render| as the Component::Render() event.
Component Vertical(Components children)
A list of components, drawn one by one vertically and navigated vertically using up/down arrow key or...
Component Checkbox(CheckboxOption options)
Draw checkable element.
Decorator size(WidthOrHeight, Constraint, int value)
Apply a constraint on the size of an element.
Element border(Element)
Draw a border around the element.
The FTXUI ftxui:: namespace.