Skip to content

Text input maybe#2390

Merged
hecrj merged 2 commits intoiced-rs:masterfrom
JL710:TextInput-Maybe
Sep 7, 2024
Merged

Text input maybe#2390
hecrj merged 2 commits intoiced-rs:masterfrom
JL710:TextInput-Maybe

Conversation

@JL710
Copy link
Contributor

@JL710 JL710 commented Apr 17, 2024

Just a small addition for the TextInput widget.

The TextInput has currently no *_maybe methods like Button has the on_press_maybe. This PR adds them.

Added Methods:

  • on_input_maybe
  • on_submit_maybe
  • on_paste_maybe

These methods, especially the on_input_maybe, are usefull in the same manner as Button::on_press_maybe and can simplify the building of uis containing the TextInput.

@hecrj hecrj added this to the 0.13 milestone Sep 7, 2024
@hecrj hecrj added feature New feature or request widget addition labels Sep 7, 2024
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Thanks!

@hecrj hecrj enabled auto-merge September 7, 2024 21:01
@hecrj hecrj merged commit dff14bd into iced-rs:master Sep 7, 2024
@JL710 JL710 deleted the TextInput-Maybe branch January 17, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addition feature New feature or request widget

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments