Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

More AutoComplete functionality. #6211

Closed
john531 opened this issue Jul 25, 2013 · 1 comment
Closed

More AutoComplete functionality. #6211

john531 opened this issue Jul 25, 2013 · 1 comment

Comments

@john531
Copy link

john531 commented Jul 25, 2013

In JQueryMobile autocomplete seems to be more for navigation and seems to lack features to easily be usable for data entry.

To achieve this it would be nice if auto complete worked more like text input does. it could allow easy access to both the list of items and input text field. Currently theirs no method of storing a users selection. This means that if I want to interact with what the user has selected I have to register for events after Jquery Mobile is done generating.

Possible support I would like to see:

  1. Allow access to the text () object during html markup. This would allow events to be registered on the text input.
    This would allow for easier access of setting the autocompletes data when the user has made a selection. This would also allow me to delete the input field if I for some reason I have no selections. Currently if you delete all selections the input field stays!, unless you go in to the JQM generated html and remove it.

  2. A way to toggle all selections to be shown. For example if I click on the autocomplete it would be nice if it could optionally show me all values until I narrow my search. This could be done by adding some attribute in the html. Currently this seems to only be achievable if on("click") of the generated you remove the JQM hidden class from all list entries.

  3. The opposite of Land data- .data() stuff in core #2... A way to hide all values. So that when 'focus' is away from the autocomplete all selections hide.

  4. Optionally allow the input text field to show the currently selected value when a selection is made.

I was just wondering if features like these could be added in the future.

@jaspermdegroot
Copy link
Contributor

@john531

Thanks for your feedback. Do you mind adding a link to this ticket here https://github.com/jquery/jquery-mobile/wiki/Feature-Requests.
I am closing this ticket as feature request for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants