Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the TypedInput APi to a one similar to the TextInput's #277

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

Ultraxime
Copy link
Contributor

I modified the method on the TypedInput to match the ones on TextInput
And change the on_submit message to send a result, either Ok(value) or an error with the current text when it's not valid

Copy link
Collaborator

@genusistimelord genusistimelord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. Let me know if this is fully finished and ill merge it.

@Ultraxime
Copy link
Contributor Author

Normally it's finished
But I'd be happy to modify things if I missed some

And I don't know if you think it would be useful to have the same overload of the draw and layout method that Textinput has

@genusistimelord
Copy link
Collaborator

What you did is good, I was just making sure you were done. I will merge this.

@genusistimelord genusistimelord merged commit 18cf814 into iced-rs:main Aug 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants