ftxui::RadioboxOption
cpp
#include <ftxui/component/component_options.hpp>Option for the Radiobox 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 selected entry changes. |
focused_entry |
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 selected entry changes.
focused_entry
cpp
Ref< int > focused_entry = 0;