FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
RadioboxOption Struct Reference

Option for the Radiobox component. More...

#include <component_options.hpp>

+ Collaboration diagram for RadioboxOption:

Static Public Member Functions

static RadioboxOption Simple ()
 Option for standard Radiobox.
 

Data Fields

ConstStringListRef entries
 
Ref< int > selected = 0
 
std::function< Element(const EntryState &)> transform
 
std::function< void()> on_change = [] {}
 Called when the selected entry changes.
 
Ref< int > focused_entry = 0
 

Detailed Description

Option for the Radiobox component.

Definition at line 192 of file component_options.hpp.

Member Function Documentation

◆ Simple()

RadioboxOption Simple ( )
static

Option for standard Radiobox.

Definition at line 287 of file component_options.cpp.

Field Documentation

◆ entries

Definition at line 197 of file component_options.hpp.

◆ selected

Ref<int> selected = 0

Definition at line 198 of file component_options.hpp.

◆ transform

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

Definition at line 201 of file component_options.hpp.

◆ on_change

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

Called when the selected entry changes.

Definition at line 205 of file component_options.hpp.

◆ focused_entry

Ref<int> focused_entry = 0

Definition at line 206 of file component_options.hpp.


The documentation for this struct was generated from the following files: