mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-16 08:04:21 +08:00
Update Input's options. (#195)
- Password is now taking a ref, allowing a shared state to be used by multiple passwords. - Password cursor position is now optional. It will be used only when set to something different from -1.
This commit is contained in:
@@ -51,9 +51,11 @@ struct InputOption {
|
||||
std::function<void()> on_enter = [] {};
|
||||
|
||||
/// Obscure the input content using '*'.
|
||||
bool password = false;
|
||||
Ref<bool> password = false;
|
||||
|
||||
Ref<int> cursor_position = 0;
|
||||
/// When set different from -1, this attributes is used to store the cursor
|
||||
/// position.
|
||||
Ref<int> cursor_position = -1;
|
||||
};
|
||||
|
||||
/// @brief Option for the Radiobox component.
|
||||
|
Reference in New Issue
Block a user