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

ftxui::RadioboxOption ​

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

Option for the Radiobox component.

Summary ​

SymbolDescription
entries
selected
transform
on_changeCalled when the selected entry changes.
focused_entry

Public Attributes ​

entries ​

cpp
ConstStringListRef entries;

selected ​

cpp
Ref< int > selected = 0;

transform ​

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

on_change ​

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

Called when the selected entry changes.

focused_entry ​

cpp
Ref< int > focused_entry = 0;