Skip to content

Conversation

flef
Copy link

@flef flef commented Sep 10, 2025

As previously discussed, this PR aims to provide a list of suggestions based on what the user types in a TextEntry Widget.

  • The PV is only written when pressing the key (same behavior than before) or when a suggestion is selected
  • Possibility to allow or disallow values outside the list of suggestions (via an option)
  • Different search algorithms (startswith, fuzzy, contains)
  • A more comprehensive example page detailing all the options

Here's the demo page from Home menu :
472009784-8e934e5a-9359-4a49-bdc3-3baa1f3eda0f

@eddybl
Copy link

eddybl commented Sep 12, 2025

This looks very interesting!

If I understand the feature correctly it allows to define a list 100 entries for the text entry widget and the autocomplete works on that list and there are the configuration options as listed in the screenshot.

As I was not part of the previous discussions on this topic, I am curious: can you list some use-cases/examples where you want (or already are) using this feature?

@flef
Copy link
Author

flef commented Sep 12, 2025

Thanks,

A list of 100 items or more (there is actually no limitation). The image is taken from the previous discussion, in which I proposed creating a new widget. We ultimately decided it would be more appropriate to merge the "suggestion" functionality into the existing TextEntry widget.

The TextEntry demo display (controls_textentry.bob) as been updated with all the new possibilities.

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