Skip to content

Add cursor_at function to the TextInput and a masked input example#3374

Open
dimspell wants to merge 1 commit into
iced-rs:masterfrom
dimspell:feat/masked-input-example
Open

Add cursor_at function to the TextInput and a masked input example#3374
dimspell wants to merge 1 commit into
iced-rs:masterfrom
dimspell:feat/masked-input-example

Conversation

@dimspell

Copy link
Copy Markdown

Description

Introduction of the cursor_at method on TextInput

This function allows programmatic set the text cursor position. This capability is necessary for implementing masked text inputs where the displayed value may differ from the underlying value.

Masked input example

Additionally, I included an example of a credit form. It illustrates the use of cursor_at for managing masked input positions.

You can run the example with:

cargo run --package masked_input

Screenshot

image

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