Skip to content
You are viewing documentation for v6.0.2. Switch to latest (main).

ftxui::CheckboxOption ​

cpp
#include <ftxui/component/component_options.hpp>

Option for the Checkbox component.

Summary ​

SymbolDescription
label
checked
transform
on_changeCalled when the user change the state.

Public Attributes ​

label ​

cpp
ConstStringRef label = "Checkbox";

checked ​

cpp
Ref< bool > checked = false;

transform ​

cpp
std::function< Element(const EntryState &)> transform;

on_change ​

cpp
std::function< void()> on_change = [] {};

Called when the user change the state.