[FL-2212] File validators and archive fixes #972
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -29,3 +29,11 @@ void TextInputVM::set_result_callback(
|
||||
void TextInputVM::set_header_text(const char* text) {
|
||||
text_input_set_header_text(text_input, text);
|
||||
}
|
||||
|
||||
void TextInputVM::set_validator(TextInputValidatorCallback callback, void* callback_context) {
|
||||
text_input_set_validator(text_input, callback, callback_context);
|
||||
}
|
||||
|
||||
void* TextInputVM::get_validator_callback_context() {
|
||||
return text_input_get_validator_callback_context(text_input);
|
||||
}
|
||||
|
@@ -32,6 +32,10 @@ public:
|
||||
*/
|
||||
void set_header_text(const char* text);
|
||||
|
||||
void set_validator(TextInputValidatorCallback callback, void* callback_context);
|
||||
|
||||
void* get_validator_callback_context();
|
||||
|
||||
private:
|
||||
TextInput* text_input;
|
||||
};
|
Reference in New Issue
Block a user