ftxui::ToggleOption
cpp
#include <ftxui/component/component_options.hpp>Option for the Toggle component.
Summary
| Symbol | Description |
|---|---|
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. |
on_enter | Called when the user presses enter. |
focused_entry |
Public Attributes
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.
on_enter
cpp
std::function< void()> on_enter = [] {};Called when the user presses enter.
focused_entry
cpp
Ref< int > focused_entry = 0;