ftxui::CheckboxOption
cpp
#include <ftxui/component/component_options.hpp>Option for the Checkbox component.
Summary
| Symbol | Description |
|---|---|
style_checked | Prefix for a "checked" state. |
style_unchecked | Prefix for a "unchecked" state. |
style_normal | style. |
style_focused | Style when focused. |
style_selected | Style when selected. |
style_selected_focused | Style when selected and focused. |
on_change | Called when the user change the state. |
Public Attributes
style_checked
cpp
std::string style_checked = "▣ ";Prefix for a "checked" state.
style_unchecked
cpp
std::string style_unchecked = "☐ ";Prefix for a "unchecked" state.
style_normal
style.
style_focused
Style when focused.
style_selected
Style when selected.
style_selected_focused
Style when selected and focused.
on_change
cpp
std::function< void()> on_change = []() {};Called when the user change the state.