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

SearchField without icon: Autocomplete #412

Open
nbonamy opened this issue Apr 15, 2023 · 1 comment
Open

SearchField without icon: Autocomplete #412

nbonamy opened this issue Apr 15, 2023 · 1 comment

Comments

@nbonamy
Copy link

nbonamy commented Apr 15, 2023

Use case

For an app I am developing I need an autocomplete text field which is basically a MacosSearchField without decoration (no magnifier icon, no clear button).

Proposal

I already have a PR ready with the following implementation:

  • Created a MacosAutoCompleteField which is basically the MacosSearchField source code with prefix and clearButtonMode as paramters
  • MacosSearchField is just a specialized MacosAutoCompleteField with predefined values for prefix and clearButtonMode

Another more simple implementation would to simply allow prefix and clearButtonMode to be user specified in MacosSearchField.

If you're OK to add this to macos_ui, then tell me which solution you prefer and I'll create a PR.

@nbonamy
Copy link
Author

nbonamy commented Apr 15, 2023

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

No branches or pull requests

2 participants