Add option for radiobox

This commit is contained in:
ArthurSonzogni
2021-07-10 10:50:25 +02:00
committed by Arthur Sonzogni
parent 33b3d1c7ab
commit ae6473363d
4 changed files with 34 additions and 24 deletions

View File

@@ -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 */