Skip to content

Use custom value in text-input's update#3335

Open
OlivierLemoine wants to merge 1 commit into
iced-rs:masterfrom
432-Technologies:text-input-custom-value-in-update
Open

Use custom value in text-input's update#3335
OlivierLemoine wants to merge 1 commit into
iced-rs:masterfrom
432-Technologies:text-input-custom-value-in-update

Conversation

@OlivierLemoine
Copy link
Copy Markdown

Right now, TextInput's update function does not follow the same pattern as it's layout or draw function, taking a value: Option<&Value> as parameter.

I am trying to implement a thin wrapper over TextInput in order to store it's value inside a state, and not exposing it to the user of the widget.

With this PR, I hope to bring the update function to same pattern as the layout or draw function.

I am ready for all the feedback and to make all the changes necessary

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.

1 participant