Add option for input.

This commit is contained in:
ArthurSonzogni
2021-07-08 00:01:42 +02:00
committed by Arthur Sonzogni
parent 2b7daf061f
commit 33b3d1c7ab
5 changed files with 33 additions and 22 deletions

View File

@@ -31,6 +31,11 @@ struct CheckboxOption {
std::function<void()> on_change = []() {};
};
struct InputOption {
std::function<void()> on_change = [] {};
std::function<void()> on_enter = [] {};
};
}; // namespace ftxui
#endif /* end of include guard: FTXUI_COMPONENT_COMPONENT_OPTIONS_HPP */