Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
javascript
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2011 at 19:25 UTC
Updated:
29 Jul 2014 at 20:04 UTC
Hi Drupal Core, here's a suggestion for better user functionality.
User autocomplete with pictures.
Autocomplete works on strings. Find a string, make an array with strings, return the strings. This seems pretty limited for user experience. We would have to change code like this.input.value = $(node).data('autocompleteValue'); to look for the main field. The HTML would have to be structured too.
In a perfect world, we could do this in D7. If there's no "main-field" specified, return to normal behaviour.
(not including the ARIA)
<div id='autocomplete'>
<div id='autocomplete-0' class= 'autocompleteValue'>
<div class="field-0">AAA</div>
<div class="field-1 main-field">AAA</div>
<div class="field-2">AAA</div>
</div>
<div id='autocomplete-1' class= 'autocompleteValue'>
<div class="field-0">BBB</div>
<div class="field-1 main-field">BBB</div>
<div class="field-2">BBB</div>
</div>
</div>
What do you think?
Comments
Comment #1
nagiek commentedI had something like this in mind...
Comment #2
Everett Zufelt commentedSee #675446: Use jQuery UI Autocomplete
Comment #3
nagiek commentedcan't wait.
Comment #4
nagiek commentedComment #5
nagiek commentedComment #6
nod_Since we'll just go ui autocomplete anyway.