ftxui::EntryState
cpp
#include <ftxui/component/component_options.hpp>arguments for ButtonOption::transform, CheckboxOption::transform, Radiobox::transform, MenuEntryOption::transform, MenuOption::transform.
Examples: component/dropdown_custom, component/menu_entries, component/menu_style
Summary
| Symbol | Description |
|---|---|
label | The label to display. |
state | The state of the button/checkbox/radiobox. |
active | Whether the entry is the active one. |
focused | Whether the entry is one focused by the user. |
index | Index of the entry when applicable or -1. |
Public Attributes
label
cpp
std::string label;The label to display.
state
cpp
bool state;The state of the button/checkbox/radiobox.
active
cpp
bool active;Whether the entry is the active one.
focused
cpp
bool focused;Whether the entry is one focused by the user.
index
cpp
int index;Index of the entry when applicable or -1.