mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-22 04:38:09 +08:00
Add option for radiobox
This commit is contained in:

committed by
Arthur Sonzogni

parent
33b3d1c7ab
commit
ae6473363d
@@ -36,6 +36,16 @@ struct InputOption {
|
||||
std::function<void()> on_enter = [] {};
|
||||
};
|
||||
|
||||
struct RadioboxOption {
|
||||
std::wstring checked = L"◉ ";
|
||||
std::wstring unchecked = L"○ ";
|
||||
|
||||
Decorator focused_style = inverted;
|
||||
Decorator unfocused_style = nothing;
|
||||
|
||||
std::function<void()> on_change = []() {};
|
||||
};
|
||||
|
||||
}; // namespace ftxui
|
||||
|
||||
#endif /* end of include guard: FTXUI_COMPONENT_COMPONENT_OPTIONS_HPP */
|
||||
|
Reference in New Issue
Block a user