More AutoComplete functionality. #6211
Description
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:
-
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. -
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.
-
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.
-
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.