ftxui::CheckboxOption
cpp
#include <ftxui/component/component_options.hpp>Option for the Checkbox component.
Summary
| Symbol | Description |
|---|---|
label | |
checked | |
transform | |
on_change | Called when the user change the state. |
Simple | Option for standard Checkbox. |
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.
Static Functions
Simple
cpp
static CheckboxOption Simple();Option for standard Checkbox.