Skip to content
You are viewing documentation for v4.0.0. Switch to latest (main).

ftxui::RadioboxOption ​

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

Option for the Radiobox component.

Summary ​

SymbolDescription
transform
on_changeCalled when the selected entry changes.
focused_entry
SimpleOption for standard Radiobox.

Public Attributes ​

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;

Static Functions ​

Simple ​

cpp
static RadioboxOption Simple();

Option for standard Radiobox.